From b4564841b687051425924228acedcd6377ad1acf Mon Sep 17 00:00:00 2001 From: Mike Causer Date: Thu, 28 Jul 2016 14:24:21 +1000 Subject: docs: Add DHT to ESP8266 Quick Ref and Tutorial --- docs/esp8266/quickref.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/esp8266/quickref.rst') diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index 779248369f..1a63516f85 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -291,6 +291,24 @@ For low-level driving of an APA102:: import esp esp.apa102_write(clock_pin, data_pin, rgbi_buf) +DHT driver +---------- + +The DHT driver is implemented in software and works on all pins:: + + import dht + import machine + + d = dht.DHT11(machine.Pin(4)) + d.measure() + d.temperature() # eg. 23 (°C) + d.humidity() # eg. 41 (% RH) + + d = dht.DHT22(machine.Pin(4)) + d.measure() + d.temperature() # eg. 23.6 (°C) + d.humidity() # eg. 41.3 (% RH) + WebREPL (web browser interactive prompt) ---------------------------------------- -- cgit v1.2.3 From f84dda711102629dbb6e37e9b6e8e4fcd8a2aff5 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 7 Aug 2016 17:46:27 +0300 Subject: docs/esp8266/quickref: Link to installation instructions. --- docs/esp8266/quickref.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/esp8266/quickref.rst') diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index 1a63516f85..48543dfab6 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -9,6 +9,12 @@ Quick reference for the ESP8266 The Adafruit Feather HUZZAH board (image attribution: Adafruit). +Installing MicroPython +---------------------- + +See the corresponding section of tutorial: :ref:`intro`. It also includes +a troubleshooting subsection. + General board control --------------------- -- cgit v1.2.3