This commit is contained in:
2024-07-03 12:28:55 +03:00
parent 712252d732
commit 97263b58e3

View File

@@ -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. Dont work if auto adjustment is enabled.
float lux = 0.0; float lux = 0.0;
for (;;) for (;;)
{ {