danjperron / PicoDHT22

Micropython DHT22 class using PIO
MIT License
49 stars 12 forks source link

Import from self #7

Open springjools opened 2 years ago

springjools commented 2 years ago

https://github.com/danjperron/PicoDHT22/blob/b92d34f2fa9b3168cf32d42107c79a555a974fb6/DHT22.py#L175

That doesn't work. You need to import from another module, and usualy you do this importing in the beginning of the file. If you just want to call the DHT22 class, just call it directly, it's right above there.

danjperron commented 2 years ago

:-)) Yep The real reason is the new version of Micropython includes its own DHT22 module. The fix is simply to change the name. I made a update and the module is not called PicoDHT22. I will check it tonight