Change to MicroPython BLE
This commit is contained in:
24
Makefile
24
Makefile
@@ -1,12 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
#SERIAL_PORT=/dev/ttyUSB0
|
||||
SERIAL_PORT=/dev/tty.usbserial-1410
|
||||
SERIAL_PORT=/dev/tty.usbserial-1420
|
||||
#SERIAL_PORT=/dev/tty.SLAB_USBtoUART
|
||||
#SERIAL_PORT=/dev/tty.wchusbserial1410
|
||||
|
||||
all: flash
|
||||
all: flash delay config update reset
|
||||
|
||||
delay:
|
||||
sleep 3
|
||||
|
||||
reset:
|
||||
esptool.py -p $(SERIAL_PORT) --after hard_reset read_mac
|
||||
|
||||
update:
|
||||
ampy -d 0.5 -p $(SERIAL_PORT) put hal.py
|
||||
ampy -d 0.5 -p $(SERIAL_PORT) put main.py
|
||||
ampy -d 0.5 -p $(SERIAL_PORT) put boot.py
|
||||
|
||||
config:
|
||||
ampy -d 0.5 -p $(SERIAL_PORT) put config.json
|
||||
|
||||
flash:
|
||||
esptool.py -p $(SERIAL_PORT) -b 460800 erase_flash
|
||||
esptool.py -p $(SERIAL_PORT) -b 460800 write_flash --flash_mode dio 0x1000 esp32-*.bin
|
||||
esptool.py -p $(SERIAL_PORT) -b 460800 write_flash --flash_mode dio 0x1000 esp32*.bin
|
||||
|
||||
serial:
|
||||
picocom --baud 115200 $(SERIAL_PORT)
|
||||
|
Reference in New Issue
Block a user