How to download and upload digistump Attiny85
This page is licensed under the following license : CC Attribution-Noncommercial-Share Alike 3.0 Unported
This page is based on http://digistump.com/wiki/digispark/tutorials/connecting
some images are from Digispark's Wiki
1. install Arduino IED
1. install Arduino IED
2. install a driver for Digistump
2. install a driver for Digistump
https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip
3. File - Preferences
3. File - Preferences
4. Tools - Board - Board Manager - install "Digistump"
4. Tools - Board - Board Manager - install "Digistump"
5. Tool - Board - Digispark (Default - 16.5mhz)
5. Tool - Board - Digispark (Default - 16.5mhz)
6. Sample Code
6. Sample Code
void setup() {
// initialize the digital pin as an output.
pinMode(0, OUTPUT); //LED on Model B
pinMode(1, OUTPUT); //LED on Model A
}
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(1, HIGH);
delay(1000); // wait for a second
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
digitalWrite(1, LOW);
delay(1000); // wait for a second
}
7. Hit the Upload Button
7. Hit the Upload Button
8. Plug USB into the board
8. Plug USB into the board