Datasheet

So to set the pin #0 LED on and off (which would be pin #3 in Lua) first make it an output:
Turn the LED on with:
And off with:
You can make this a little more automated by running a longer script.
For longer text, pasting can be difficult as the lua interpreter needs a little delay time between characters and also
require CR-LF settings. For that reason you may want to paste each line and then hit return manually.
The Lua documentation for the ESP8266 has GPIO #4 and #5 swapped so if #4/#5 aren't working for you, try
swapping!
Pin Notes PCB/Arduino NodeMCU/Lua
No pullups! 0 3
2 4
3 9
4 1
5 2
9 11
10 12
12 6
13 7
14 5
15 8
16 0
gpio.mode(3, gpio.OUTPUT)
gpio.write(3, gpio.LOW)
gpio.write(3, gpio.HIGH)
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-huzzah-esp8266 Page 28 of 43