Added some more projects and libraries.
This commit is contained in:
parent
f7151392ab
commit
1e1459fa50
94 changed files with 11904 additions and 0 deletions
17
Digispark_Blink/Digispark_Blink.ino
Normal file
17
Digispark_Blink/Digispark_Blink.ino
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
// the setup routine runs once when you press reset:
|
||||
void setup() {
|
||||
// initialize the digital pin as an output.
|
||||
pinMode(0, OUTPUT); //LED on Model B
|
||||
pinMode(1, OUTPUT); //LED on Model A or Pro
|
||||
}
|
||||
|
||||
// the loop routine runs over and over again forever:
|
||||
void loop() {
|
||||
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
|
||||
digitalWrite(1, HIGH);
|
||||
delay(100); // wait for a second
|
||||
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
|
||||
digitalWrite(1, LOW);
|
||||
delay(100); // wait for a second
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue