This commit is contained in:
2024-06-18 17:40:46 +03:00
parent 8ca17eaff1
commit cdb0344246
2 changed files with 2 additions and 14 deletions

Binary file not shown.

View File

@ -10,32 +10,20 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
/**
* @brief Default values for zh_bh1750_init_config_t structure for initial initialization of the sensor.
*
*/
#define ZH_BH1750_INIT_CONFIG_DEFAULT() \ #define ZH_BH1750_INIT_CONFIG_DEFAULT() \
{ \ { \
.i2c_address = I2C_ADDRESS_LOW, \ .i2c_address = I2C_ADDRESS_LOW, \
.operation_mode = HIGH_RESOLUTION, \ .operation_mode = HIGH_RESOLUTION, \
.work_mode = ONE_TIME, \ .work_mode = ONE_TIME, \
.i2c_port = 0, \ .i2c_port = 0, \
.auto_adjust = false \ .auto_adjust = false}
}
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#endif #endif
/** typedef struct // Structure for initial initialization of BH1750 sensor.
* @brief Structure for initial initialization of the sensor.
*
* @note Before initialize the sensor recommend initialize zh_bh1750_init_config_t structure with default values.
*
* @code zh_bh1750_init_config_t config = ZH_BH1750_INIT_CONFIG_DEFAULT() @endcode
*/
typedef struct
{ {
enum // Sensor address. enum // Sensor address.
{ {