u8g2-copy/sys/arduino/u8g2_page_buffer/LittleRookChess/LittleRookChess_Upload_Ardu...

6 lines
300 B
Bash
Raw Normal View History

2018-05-21 04:26:51 +08:00
HEXFILE=LittleRookChess.hex
ARDUINO_PATH=/home/kraus/prg/arduino-1.8.4
stty -F /dev/ttyACM0 1200 raw ignbrk hup
sleep 3
${ARDUINO_PATH}/hardware/tools/avr/bin/avrdude -V -F -C ${ARDUINO_PATH}/hardware/tools/avr/etc/avrdude.conf -p atmega32u4 -P /dev/ttyACM0 -c avr109 -b 57600 -U flash:w:${HEXFILE}