Created
March 3, 2016 03:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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