#!/bin/bash Proj=${1} Part=${2:-${AVR_DEFAULT_PART:-atmega168}} BuildDir=${AVR_BUILD_DIR:-/tmp/} Programmer=${AVR_PROGRAMMER:-usbtiny} SourceFile=${Proj}.c HexFile=${BuildDir}/${Proj}.hex EepFile=${BuildDir}/${Proj}.eep echo Pushing $HexFile and $EepFile to $Part avrdude -y -c $Programmer -p $Part -U flash:w:$HexFile -U eeprom:w:$EepFile