avishorp / TM1637

Arduino library for TM1637 (LED Driver)
GNU Lesser General Public License v3.0
426 stars 218 forks source link

Changes temperature redings of DHT11 #80

Closed Enterius closed 3 years ago

Enterius commented 3 years ago

Hi, I discovered that when I try to combine your library with "SimpleDHT" in one sketch I need to put display.setBrightness command to setup loop. Otherwise if it is in main loop it changes the temperature readings from DHT11 and makes them higher about 5-7 degrees than normal. Before moving display.setBrightness command I tried to change pins for both display and DHT but with no effect. That is ok for me as I need constant brightness, but if someone would like to change it depending on some events than it could be a problem. I don't know if this problem is caused by your library or simpleDHT as I'm just a beginner and have no knowledge to investigate that. So I hope you could find some time to check this issue.

And by the way thanks for your library! It made my life much easier :)

Best regards Chris

Enterius commented 3 years ago

Ok, after some more testing it seems that it was just coincidence with moving display.setBrightness command. After a while temperature readings started to go crazy again. And as far as I can tell it might be just a shitty DHT11 that is making problems, not the libraries. So I'm closing this issue for now until I test it fully.