methode DHT22 in dht module don't work #119
Replies: 4 comments 2 replies
-
I'll look into this. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue with the same firmware. |
Beta Was this translation helpful? Give feedback.
-
I'll look into this tonight. |
Beta Was this translation helpful? Give feedback.
-
Hello, SPI Baudrates above 26.7 MHz are not working again in this release? (T-Display) I have to downgrade to 1.19.1-738: https://github.com/russhughes/st7789_mpy/blob/50f91804ddc5016a1143d3b274559cae778ba338/firmware/T-DISPLAY-ESP32/firmware.bin |
Beta Was this translation helpful? Give feedback.
-
Hi,
First, thank for your job.
I use your ST7789 firmware because I need to use urequest module and dht module.
But the dht module don't work, maybe you can help me.
First, when I import the module in ma code with the simple command 'import dht' I have this error message :
Traceback (most recent call last):
File "", line 1, in
File "dht.py", line 1, in
ImportError: can't import name dht_readinto
I need to code a try-exept for that it work.
try:
import dht
except:
import dht
Second, when import dht is ok, I create a variable to assignate the pin of my ESP32 board like that :
sensor = dht.DHT22(machine.Pin(2))
and I have another error message:
AttributeError: 'module' object has no attribute 'DHT22'
Can you share me the dht.py file check wy it don't work or maybe you can change the firmware for resolve this mistake.
Have a nice day.
Best regards.
François
Beta Was this translation helpful? Give feedback.
All reactions