Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display dialog ("Disaster Area Amps Uploader v1.1")
- choose from list (get serialport list) with prompt "Choose Serial Port…"
- set mySerialPort to item 1 of (get serialport list)
- set dudeFolder to POSIX file ((POSIX path of (path to me)) & "/..") as text
- set dudeFolder to POSIX path of dudeFolder
- set hexFile to choose file with prompt "Choose .HEX file to load…" of type "HEX"
- set hexFile to POSIX path of hexFile
- display dialog ("Ready to program")
- tell application "Terminal"
- do script dudeFolder & 'avrdude -C "' & dudeFolder & '"avrdude.conf -P' & mySerialPort & ' -v -v -v -v -patmega328p -cstk500v1 -b57600 -D -Uflash:w:"' & hexFile & '":i'
- end tell
Add Comment
Please, Sign In to add comment