WIP
This commit is contained in:
@@ -67,7 +67,7 @@ void app_main(void)
|
|||||||
bh1750_init_config.i2c_handle = i2c_bus_handle;
|
bh1750_init_config.i2c_handle = i2c_bus_handle;
|
||||||
#endif
|
#endif
|
||||||
zh_bh1750_init(&bh1750_init_config);
|
zh_bh1750_init(&bh1750_init_config);
|
||||||
zh_bh1750_adjust(69); // Just for an example of how to change the sensor sensitivity.
|
zh_bh1750_adjust(69); // Just for an example of how to change the sensor sensitivity. Don’t work if auto adjustment is enabled.
|
||||||
float lux = 0.0;
|
float lux = 0.0;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user