UM BH1750 adapted to "MM style", 8266 build fixes

* UM BH1750 adjustments to use new MM features
* UM BH1750 check sensor status before tryig to read new value (avoids blocking LED updates)
* UM temperature: ensure that measurements continue with many LEDs running (strip.isUpdating() will be true all the time)
* all usermods: solved compile problems on 8266
This commit is contained in:
Frank
2023-05-10 20:14:10 +02:00
parent 3aad3a8ff7
commit 50061ddae8
4 changed files with 30 additions and 24 deletions

View File

@@ -238,7 +238,7 @@ void registerUsermods()
#endif
#ifdef USERMOD_BH1750
usermods.add(new Usermod_BH1750());
usermods.add(new Usermod_BH1750("BH1750", false));
#endif
#ifdef USERMOD_BME280