adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

What is the difference between pulsein=True and pulsein=False? #100

Open Y-k-Y opened 1 month ago

Y-k-Y commented 1 month ago

I'm using it on pi 5 and i disabled pusein since the 2rd executing issue still persist. As example shows the usage of pulsein=False i can confirm that this fixes the 2rd executing issue.

I just want to know the difference between pulsein=Ture and pulsein=False How does it work when pulsein=False? I've read that pulseio is the main component that does most of work of reading IR receiver pulses then how does it read without pulseio?

dhalbert commented 1 month ago

It reads the pulses by polling the data pin: https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/cec6795c87c32624946994664cdce4332ca0b44e/adafruit_dht.py#L151.

Could you explain what you mean by the "2rd executing issue"? Is there an open issue that is what you mean?