/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: edam
  • Date: 2012-01-18 23:22:57 UTC
  • Revision ID: edam@waxworlds.org-20120118232257-a3323t3u7nd84zbd
updated led test and added real-time clock to the schematic

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
}