Wiring the analog LED Strip is not so difficult compare to addressable LED Strip. To control an analog LED Strip using popular Microcontroller like Arduino you need to add a power transistor to the circuit if you are new to
LUA Programming Using ESPlorer IDE Tutorial Guide
To upload a code to ESP8266, you should connect your ESP8266 to your FTDI USB Programmer: as the image illustration below. Coding Your fist LUA Script a blinking an LED
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
-- your first lua script working on LED lighton=0 pin=4 gpio.mode(pin,gpio.OUTPUT) -- Assign GPIO to Output tmr.alarm(1,2000,1,function() if lighton==0 then lighton=1 gpio.write(pin,gpio.HIGH) -- Assign GPIO On else lighton=0 gpio.write(pin,gpio.LOW) -- Assign GPIO off end end) |
Burning your code into the chip ESP8266 +