/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
20
21
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, HIGH );
		delay( 100 );
		digitalWrite( a, LOW );
		delay( 100 );
		digitalWrite( a, HIGH );
		delay( 200 );
		digitalWrite( a, LOW );
		delay( 200 );
	}
}