title |
---|
MicroPython / GPIO |
MicroPython / GPIO
-
1. Getting started with MicroPython on the ESP8266 — MicroPython 1.9.4 documentation Names of pins will be given in this tutorial using the CHIP NAMEs (eg GPIO0) and it should be straightforward to find which pin this corresponds to on your particular board. 為什麼說 GPIO0 是 chip name?? 看來 GPIO pin 要對應到實體開發版的哪個 pin 會因開發版而異? 即便都是用 ESP8266。
-
MicroPython with ESP32 and ESP8266: Interacting with GPIOs | Random Nerd Tutorials #ril
-
class Pin – control I/O pins — MicroPython 1.9.4 documentation #ril
-
class Signal – control and sense external I/O devices — MicroPython 1.9.4 documentation #ril
-
Release v1.9.1: Fixes for stmhal USB mass storage, lwIP bindings and VFS regressions · micropython/micropython - esp8266: consistently replace
Pin.high/low
methods with.on/off
因為其他 port 都用.on()/off()
? 倒覺得對於潛流 (sink current) 接法的元件來說Pin.value(0)/value(1)
會比Pin.on()/off()
來得直覺,除非改用Signal.on()/off()
就沒這個問題。