diff options
author | Olivier Ortigues <o.ortigues@gmail.com> | 2018-02-14 21:41:01 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-15 11:15:12 +1100 |
commit | 298b325f3e1385267b715af60ffcae7f71432196 (patch) | |
tree | 53b4f30c1d812c06aa0b270a5712f64e952fbc55 /docs/esp8266 | |
parent | 359d2bdf8450ec3316eb7cc3fdc210d28cfdf91b (diff) | |
download | micropython-298b325f3e1385267b715af60ffcae7f71432196.tar.gz micropython-298b325f3e1385267b715af60ffcae7f71432196.zip |
docs/esp8266: Add a note concerning GPIO16 pull capabilities.
Diffstat (limited to 'docs/esp8266')
-rw-r--r-- | docs/esp8266/tutorial/pins.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/esp8266/tutorial/pins.rst b/docs/esp8266/tutorial/pins.rst index cd45c83cd3..d304cd55b7 100644 --- a/docs/esp8266/tutorial/pins.rst +++ b/docs/esp8266/tutorial/pins.rst @@ -17,7 +17,8 @@ it. To make an input pin use:: >>> pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP) You can either use PULL_UP or None for the input pull-mode. If it's -not specified then it defaults to None, which is no pull resistor. +not specified then it defaults to None, which is no pull resistor. GPIO16 +has no pull-up mode. You can read the value on the pin using:: >>> pin.value() |