EasyManua.ls Logo

Adafruit Feather HUZZAH ESP8266 - Page 29

Adafruit Feather HUZZAH ESP8266
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
So to set the pin #0 LED on and off (which would be pin #3 in Lua) first make it an
output:
gpio.mode(3, gpio.OUTPUT)
Turn the LED on with:
gpio.write(3, gpio.LOW)
And off with:
CHPD (Note, don't use this pin or set it
to be an output!)
3 9
4 1
5 2
9 11
10 12
12 6
13 7
14 5
15 8
16 0
©Adafruit Industries Page 29 of 53

Related product manuals