diff --git a/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c b/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c index 352bae771..733656349 100644 --- a/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c +++ b/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c @@ -76,7 +76,7 @@ void app_main(void) //i2c_master_init(); i2c_bus = i2c_bus_create(I2C_MASTER_NUM, &conf); //i2c_bus = i2c_bus_create(I2C_MASTER_NUM, I2C_MASTER_SDA_IO, I2C_MASTER_SCL_IO, I2C_MASTER_FREQ_HZ); - //sensor = bme280_create(i2c_bus, BME280_SENSOR_ADDR); + sensor = bme280_create(i2c_bus, BME280_SENSOR_ADDR); //ESP_ERROR_CHECK(bme280_default_init(sensor)); //ESP_ERROR_CHECK(bme280_read_temperature(sensor, &temperature));