Skip to content

twhtanghk/docker.esp8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker.esp8266

Dockerfile to create image with git, python, nodejs, coffeescript, lua, luarocks, moonscript, minicom, esptool, luatool, NodeMCU-Tool for esp8266 programming

start container

docker run -it --device /dev/ttyUSB0 twhtanghk/docker.esp8266

nodemcu

flash firmware

browse https://nodemcu-build.com/index.php enable required modules (e.g. adc, cjson, file, gpio, net, node, pwm, rtctime, tmr, wifi)

esptool.py write_flash 0x00000 nodemcu-xxxx.bin

compile, mkfs, or upload

cd ~/docker.esp8266/src
moonc *.moon
nodemcu-tool mkfs
nodemcu-tool upload *.lua