Data Sheet
12
Part2 Crowtail Application
Lesson1: LED Control
LED control is basic on Node MC U. In this lesson we will learn how to control the LED,
you can make the led blink and control the last time it shines or the brightness.
Material:
Cro wtai l- ES P8266 NodeMCU x 1
Cro wtai l- LED x 1
Cro wtai l- Cable x 1
US B Cabl e x 1
Hardware Connection
Plu g the Crow tail-LED to the D1 port on NodeM CU by a 3pin Crow tail-C a ble
as followin g.
Open the LuaLoader. Clic k the butto n in the GP IO funct ion area, choose GP IO5
port, set it as Out put mo de, click ”1” the LED will light up, cl i ck “0 ” the LED will
light of f.
Also, we can downl oad the code to the NodeMCU. Copy the bellow code and
paste it to LuaEdi tor, then save the file an d named it “init.lua ”