This commit is contained in:
2022-04-26 22:17:21 +03:00
parent 7ef2d2ecfb
commit 23074cbf43
6 changed files with 116 additions and 90 deletions

View File

@@ -1,15 +1,20 @@
# Makefile for the board
NAME=esp32-20220117-v1.18.bin
NAME=esp32-20180222-v1.9.3-347-g6e675c1b.bin
all: flash upload console
all: flash console
bin/${NAME}:
mkdir -p bin
wget https://micropython.org/resources/firmware/${NAME} -O bin/${NAME}
flash:
esptool.py -p /dev/ttyUSB0 -b 921600 erase_flash
flash: bin/${NAME}
esptool.py -p /dev/ttyUSB0 -b 921600 write_flash --flash_mode dio 0x1000 bin/${NAME}
sleep 5
ampy -p /dev/ttyUSB0 put ssd1306.py
upload:
ampy -p /dev/ttyUSB0 put boot.py
ampy -p /dev/ttyUSB0 put main.py
console:
echo "Ctrl-A + Ctrl-Q to close Picocom"
picocom -b115200 /dev/ttyUSB0