Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ports=("/dev/ttyUSB0" "/dev/ttyUSB1" "/dev/ttyUSB2")
- firmware="firmware.bin"
- for port in "${ports[@]}"; do
- esptool.py --chip esp32 --port $port write_flash 0x1000 $firmware &
- done
- wait
- echo "All ESP32 boards have been flashed."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement