mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-25 16:13:21 +00:00
esp32 temperature node
This commit is contained in:
@@ -77,7 +77,7 @@ void app_main(void)
|
|||||||
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
||||||
|
|
||||||
//i2c_master_init();
|
//i2c_master_init();
|
||||||
i2c_bus = i2c_bus_create(I2C_MASTER_NUM, conf);
|
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);
|
//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);
|
||||||
if(!sensor) {
|
if(!sensor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user