/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
void setup()
{
	// set up output pins (4 to 13) for the led array
	for( int a = 4; a < 14; a++ )
		pinMode( a, OUTPUT );
}

void loop()
{
	for( int a = 4; a < 14; a++ )
	{
		digitalWrite( a, a == 4? LOW : HIGH );
		delay( 100 );
	}
	for( int a = 4; a < 14; a++ ) {
		digitalWrite( a, a == 4? HIGH : LOW );
		delay( 100 );
	}
}