dht.py 407 B

12345678910111213141516171819202122232425
  1. # DHT11/DHT22 driver for MicroPython on ESP8266
  2. # MIT license; Copyright (c) 2016 Damien P. George
  3. import esp
  4. class DHTBase:
  5. def __init__(self, pin):
  6. pass
  7. def measure(self):
  8. pass
  9. class DHT11(DHTBase):
  10. def humidity(self):
  11. pass
  12. def temperature(self):
  13. pass
  14. class DHT22(DHTBase):
  15. def humidity(self):
  16. pass
  17. def temperature(self):
  18. pass