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 72a63328e..46550a320 100644 --- a/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c +++ b/ESP32-IDF_Temperture-Node-v2/main/hello_world_main.c @@ -30,6 +30,7 @@ static i2c_bus_handle_t i2c_bus = NULL; // BME280 device handle static bme280_handle_t bme280 = NULL; +// I2C bus configuration struct i2c_config_t conf = { .mode = I2C_MODE_MASTER, .sda_io_num = SDA_PIN, @@ -40,7 +41,6 @@ i2c_config_t conf = { .clk_flags= 0, }; - void app_main(void) { i2c_bus = i2c_bus_create(i2c_master_port, &conf);