,

How to Download and Upload Attiny85 ) digistump digispark (Easy, 3min, Arduino IDE)





1. install Arduino IED
https://www.arduino.cc/en/Main/Software

2. install a driver for Digistump
https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip

3. File – Preferences
http://digistump.com/package_digistump_index.json

4. Tools – Board – Board Manager – install “Digistump”

5. Tool – Board – Digispark (Default – 16.5mhz)

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

8. Plug USB into the board

if you wanna buy Attiny85 https://goo.gl/PhLE6V

#arduino_project_for_beginners


source

Leave a Reply

Your email address will not be published. Required fields are marked *

How To Fix Windows 10 Error Code 0xc000000d[Solved]

Windows 10 Pro Product Key Error Code Fix