summaryrefslogtreecommitdiff
path: root/docs/esp8266/quickref.rst
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-08-29 12:52:50 +1000
committerDamien George <damien.p.george@gmail.com>2016-08-29 12:52:50 +1000
commit13c5a228c9ec9881087bdddd162f3b633edc3aa5 (patch)
tree40f2896f90b8fac8ce6d7592d2288c76a27fb5c2 /docs/esp8266/quickref.rst
parent59a9509703c6e525b3419ffea1b69f3b6992e006 (diff)
docs/esp8266: Update quickref and tutorial for OneWire/DS18X20 driver.
Diffstat (limited to 'docs/esp8266/quickref.rst')
-rw-r--r--docs/esp8266/quickref.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst
index d8ec60372..f15cb72bb 100644
--- a/docs/esp8266/quickref.rst
+++ b/docs/esp8266/quickref.rst
@@ -253,15 +253,14 @@ The OneWire driver is implemented in software and works on all pins::
ow.scan() # return a list of devices on the bus
ow.reset() # reset the bus
ow.readbyte() # read a byte
- ow.read(5) # read 5 bytes
ow.writebyte(0x12) # write a byte on the bus
ow.write('123') # write bytes on the bus
ow.select_rom(b'12345678') # select a specific device by its ROM code
-There is a specific driver for DS18B20 devices::
+There is a specific driver for DS18S20 and DS18B20 devices::
- import time
- ds = onewire.DS18B20(ow)
+ import time, ds18x20
+ ds = ds18x20.DS18X20(ow)
roms = ds.scan()
ds.convert_temp()
time.sleep_ms(750)