Skip to content

Instantly share code, notes, and snippets.

@owskio
Created March 3, 2016 03:37
Show Gist options
  • Save owskio/b9e3de62115d54d307fa to your computer and use it in GitHub Desktop.
Save owskio/b9e3de62115d54d307fa to your computer and use it in GitHub Desktop.
Now using an olimex pocket programmer, and an uninhabited arduino board as the programmer
/*
sudo avrdude -b 19200 -c avrisp2 -p m328p -P /dev/ttyACM1 \
-v -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m \
-U flash:w:optiboot_atmega328.hex
*/
//modified from Scott Fitzgerald's Blink, which comes with the `sudo apt-get install arduino`
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment