Add scripts

parents
#!/bin/bash
if [[ $# < 2 ]] ; then
echo
echo "Usage: $0 <serial_device> <filename>"
echo
exit 0
fi
avrdude -C arduino-nightly/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -cwiring -U flash:r:"$2":r -P $1 -b115200
#!/bin/bash
if [[ $# < 2 ]] ; then
echo
echo "Usage: $0 <serial_device> <filename>"
echo
exit 0
fi
avrdude -C arduino-nightly/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -cwiring -U flash:w:"$2":r -P $1 -b115200
#!/bin/bash
if [[ $# < 1 ]] ; then
echo
echo "Usage: $0 <file.ino>"
echo
exit 0
fi
arduino --verify --board arduino:avr:mega256 "${1}"
#!/bin/bash
if [[ $# < 2 ]] ; then
echo
echo "Usage: $0 <serial_device> <file.ino>"
echo
exit 0
fi
arduino --upload --board arduino:avr:mega256 --port $1 "${2}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment