Skip to content

Commit 06c0c3c

Browse files
committed
Attiny Blink All Pins Test.
1 parent b1769a3 commit 06c0c3c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
Blink Test All IO Pins
3+
Turns on an LED on for one second, then off for one second, repeatedly.
4+
5+
This example code is in the public domain.
6+
*/
7+
8+
9+
// the setup routine runs once when you press reset:
10+
void setup() {
11+
// initialize the digital pin as an output.
12+
for (int ii = 0; ii < 5; ii++)
13+
{
14+
pinMode(ii, OUTPUT);
15+
}
16+
17+
}
18+
19+
// the loop routine runs over and over again forever:
20+
void loop() {
21+
22+
for (int ii = 0; ii < 5; ii++)
23+
{
24+
digitalWrite(ii, HIGH);
25+
delay(250);
26+
digitalWrite(ii, LOW);
27+
delay(250);
28+
}
29+
30+
31+
}
32+
33+

0 commit comments

Comments
 (0)