Repository navigation
New Usermod: SHT temperature & humidity sensors - #2942
Conversation
blazoncek
left a comment
There was a problem hiding this comment.
Thank you for excellent contribution.
I do have a few requests for change as it may benefit the usability.
As for global I2C there were a few complaints that sharing I2C may cause issues. Please test that with 4LD ALT usermod (or any other that uses I2C). Perhaps other usermods may need a rewrite to make them work (a separate PR).
Otherwise the code is clean and well structured.
|
Thanks Blaz!! I'll try checking out tonight with other i2c mods. I think I even have a four line display laying around here, so can actually test! Will let you know! |
|
You may as well follow the guideline I posted on Discord #dev-general. Any function defined within class definition is automatically |
|
@blazoncek Except for testing the mod with other mods using the global i2c pins (like 4LD), all feedback should have been applied. Will try to test the mod with the 4LD mod the next days and report back! But please, if you have some time already, check if your feedback has been properly addressed / solved :) THX! |
|
OK, so I have been testing a bit with also compiling with the 4LD ALT mod. Sadly, I don't have an i2c 4LD, but an SPI one... So couldn't really test having two i2c devices running simultaneously :/ However, I added a bit of debugging and see what the I also saw that the However, I made a few changes to how I de-/allocate pins. Hope this concludes that mod and is good to go :) THX!! |
Yes, that is intentional and mandatory. |
|
@softhack007 if everything is ok with you, I am ok merge it. |
|
@blazoncek Just waiting for the pin >= 0 check to be added, otherwise looks very good 👍 |
|
@blazoncek @softhack007 Should be done :) |
New Usermod: SHT temperature & humidity sensors
Hey there,
I don't think we have enough temperature sensors, do we? ;) WLED already has support for the Dallas temp sensors (e.g. used on the QuinLED Dig-Uno and Dig-Quad), DHT temp sensors and now I also add support for various SHT i2c sensors, which are used on the new QuinLED Dig-Octa, as also on the An-Penta.
Some facts:
Please let me know what you think and where I can improve :)
Thanks for considering this mod and greetings,
Andy!