Push
This commit is contained in:
35
Makefile
Normal file
35
Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
SERIAL_PORT=/dev/ttyUSB0
|
||||
#SERIAL_PORT=/dev/tty.SLAB_USBtoUART
|
||||
#SERIAL_PORT=/dev/tty.wchusbserial1410
|
||||
|
||||
all: flash delay libs config update reset
|
||||
upload: config update reset console
|
||||
|
||||
delay:
|
||||
sleep 3
|
||||
|
||||
reset:
|
||||
esptool.py -p $(SERIAL_PORT) --after hard_reset read_mac
|
||||
picocom -b 115200 $(SERIAL_PORT)
|
||||
|
||||
libs:
|
||||
ampy -p $(SERIAL_PORT) put uwebsockets.py
|
||||
ampy -p $(SERIAL_PORT) put debounce.py
|
||||
|
||||
update:
|
||||
ampy -p $(SERIAL_PORT) put hal.py
|
||||
ampy -p $(SERIAL_PORT) put main.py
|
||||
ampy -p $(SERIAL_PORT) put boot.py
|
||||
|
||||
config:
|
||||
ampy -p $(SERIAL_PORT) put config.json
|
||||
|
||||
flash:
|
||||
esptool.py -p $(SERIAL_PORT) --chip esp32 -b 115200 erase_flash
|
||||
esptool.py -p $(SERIAL_PORT) --chip esp32 -b 115200 write_flash --flash_mode dio 0x1000 esp32-*.bin
|
||||
|
||||
console:
|
||||
echo "Ctrl-A + Ctrl-Q to close Picocom"
|
||||
picocom -b 115200 $(SERIAL_PORT)
|
Reference in New Issue
Block a user