bzr branch
http://bzr.ed.am/elec/propeller-clock
36
by edam
added led-test subproject |
1 |
void setup() |
2 |
{ |
|
3 |
// set up output pins (4 to 13) for the led array |
|
4 |
for( int a = 4; a < 14; a++ ) |
|
5 |
pinMode( a, OUTPUT ); |
|
6 |
} |
|
7 |
||
8 |
void loop() |
|
9 |
{ |
|
10 |
for( int a = 4; a < 14; a++ ) |
|
11 |
{ |
|
37
by edam
updated led test and added real-time clock to the schematic |
12 |
digitalWrite( a, a == 4? LOW : HIGH ); |
13 |
delay( 100 ); |
|
14 |
} |
|
15 |
for( int a = 4; a < 14; a++ ) { |
|
16 |
digitalWrite( a, a == 4? HIGH : LOW ); |
|
17 |
delay( 100 ); |
|
36
by edam
added led-test subproject |
18 |
} |
19 |
} |