Add firmware makefile
This commit is contained in:
parent
c2439c9540
commit
9c837a6f69
5
.gitignore
vendored
5
.gitignore
vendored
@ -3,3 +3,8 @@ _autosave*
|
||||
export
|
||||
*.kicad_pcb-bak
|
||||
*rescue.lib
|
||||
firmware/*.bin
|
||||
*.drl
|
||||
*.g*
|
||||
*.ps
|
||||
*.zip
|
||||
|
17
firmware/Makefile
Normal file
17
firmware/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
NAME=esp8266-20180511-v1.9.4.bin
|
||||
|
||||
flash:
|
||||
wget -c http://micropython.org/resources/firmware/${NAME}
|
||||
esptool.py -p /dev/ttyUSB0 write_flash 0 ${NAME}
|
||||
|
||||
erase:
|
||||
esptool.py -p /dev/ttyUSB0 erase_flash
|
||||
|
||||
upload:
|
||||
ampy -p /dev/ttyUSB0 put picoweb.py
|
||||
ampy -p /dev/ttyUSB0 put timezone.py
|
||||
ampy -p /dev/ttyUSB0 put main.py
|
||||
|
||||
console:
|
||||
echo "Ctrl-A + Ctrl-Q to close Picocom"
|
||||
picocom -b115200 /dev/ttyUSB0
|
Loading…
Reference in New Issue
Block a user