lion d1 miniでビルトインLEDブリンク成功
led = nil
if my_timer then my_timer:unregister() my_timer = nil end
led = 4
gpio.mode(led, gpio.OUTPUT)
my_timer = tmr.create()
my_timer:register(1000, tmr.ALARM_AUTO, function()
if gpio.read(led) == gpio.HIGH then
gpio.write(led, gpio.LOW)
else
gpio.write(led, gpio.HIGH)
end
end)
my_timer:start()
https://nodemcu-build.com/ and use firware bin
sudo apt update
sudo apt install esptool
esptool --port /dev/ie:ttyUSB0 --baud 460800 write_flash 0x00000 ie:firmware.bin---------------------------------------------
https://tomosoft.jp/design/?p=6810 :: esplorer-for-lua
--------------------------------------------------
can download the tool from ESPlorer to program ESP8266 and ESP32 chips with Lua on Ubuntu.
- Install Java: ESPlorer is a Java application. Open your terminal and install Java using
sudo apt updateandsudo apt install default-jre. - Download ESPlorer: Get the latest zip file from the official site.
- Extract the file: Unzip the downloaded archive to a folder of your choice.
- Run the program: Open a terminal in that folder and run
java -jar ESPlorer.jar.