/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: Tim Marston
  • Date: 2012-05-18 18:29:50 UTC
  • Revision ID: tim@ed.am-20120518182950-t85bn9a21n72uzm8
text messages are now individually enabled and draw()n automatically

Show diffs side-by-side

added added

removed removed

9
9
{
10
10
        for( int a = 4; a < 14; a++ )
11
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 );
 
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 );
20
18
        }
21
19
}