chiark / gitweb /
crossbar-computer-led-mount: actually put holes in Test for leds
[reprap-play.git] / read-firmware
1 #!/bin/bash
2
3 set -ex
4
5 if [ $# = 0 ]; then
6    port=/dev/ttyUSB0
7 else
8    port="$1"; shift
9 fi
10
11 ad () {
12    avrdude -b 38400 -v -P $port -p atmega644P -c arduino "$@"
13 }
14
15 args=''
16 for f in flash eeprom hfuse lfuse efuse; do
17     args+=" -U $f:r:firmware-$f.hex:i"
18 done
19
20 ad "$@"
21 ad "$@" $args