#!/bin/sh

pip install esptool
parallel --latest-line --color esptool.py --port '{}' --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x8000 partition-table.bin 0x10000 nixie_clock.bin 0x180000 storage.bin ::: `ls /dev/ttyACM* /dev/ttyUSB* 2>/dev/null`
