Closed matevz closed 6 months ago
It's giving an attribute error because it expects pin to be a pin instead of an integer. It looks like this is caused by initializing the DHT22 with an integer instead of a pin. The 4
should actually be something like board.D4
instead. See the DHT simpletest for example: https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/main/examples/dht_simpletest.py
Board Name
Raspberry Pi 3
Steps
On a Raspberry Pi 3 with a fresh 64-bit Raspian 2023-12-05 version I did
pip install adafruit-circuitpython-dht
Description
When changing this line https://github.com/adafruit/Adafruit_Blinka/blob/60fa43167c45c1ab162292dcf26d6dce9e001851/src/digitalio.py#L182
to
it worked. Not sure, if there are some versions borked in pypi or it's an actual bug.
Additional information
No response