WIP
This commit is contained in:
@ -2,11 +2,12 @@
|
||||
|
||||
#include "esp_err.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/i2c.h"
|
||||
#ifdef CONFIG_IDF_TARGET_ESP8266
|
||||
#include "driver/i2c_master.h"
|
||||
// #include "driver/i2c.h"
|
||||
// #ifdef CONFIG_IDF_TARGET_ESP8266
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
/**
|
||||
* @brief Default values for zh_bh1750_init_config_t structure for initial initialization of the sensor.
|
||||
@ -51,6 +52,7 @@ extern "C"
|
||||
ONE_TIME // One time measurement. Sensor is power down after measurement.
|
||||
} work_mode;
|
||||
bool i2c_port; // I2C port.
|
||||
i2c_master_bus_handle_t i2c_handle;
|
||||
} zh_bh1750_init_config_t;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user