/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to test/led-test/led-test.ino

  • Committer: Dan
  • Date: 2011-11-18 15:43:57 UTC
  • Revision ID: dan@waxworlds.org-20111118154357-ro53w0hsow466tkf
fixed display wdth for hands on clock face

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
        {
12
 
                digitalWrite( a, HIGH );
13
 
                delay( 100 );
14
 
                digitalWrite( a, LOW );
15
 
                delay( 100 );
16
 
                digitalWrite( a, HIGH );
17
 
                delay( 200 );
18
 
                digitalWrite( a, LOW );
19
 
                delay( 200 );
20
 
        }
21
 
}