Skip to content

Instantly share code, notes, and snippets.

@schappim
Created April 1, 2012 10:11
Show Gist options
  • Save schappim/2274209 to your computer and use it in GitHub Desktop.
Save schappim/2274209 to your computer and use it in GitHub Desktop.
Flashing the Arduino from the Beaglebone;
/usr/bin/setgpio;
sleep 2;
/usr/bin/setserial;
sleep 2;
echo "38" > /sys/class/gpio/export;
sleep 2;
echo "out" > /sys/class/gpio/gpio38/direction;
sleep 2;
sudo echo "1" > /sys/class/gpio/gpio38/value;
sleep 2;
sudo echo "0" > /sys/class/gpio/gpio38/value; sudo echo "1" > /sys/class/gpio/gpio38/value; avrdude -C /home/ubuntu/avrdude.conf -p atmega328p -c arduino -P /dev/ttyO1 -b 57600 -D -U flash:w:./ninja.cpp.hex:i;
echo "yay done!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment