/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 propeller-clock/propeller-clock.pde

  • Committer: Dan
  • Date: 2011-12-01 00:59:35 UTC
  • Revision ID: dan@waxworlds.org-20111201005935-baxqmd35xy677sqg
Added PCB diagram

Show diffs side-by-side

added added

removed removed

175
175
        }
176
176
 
177
177
        // what needs to be drawn?
178
 
        bool draw_tick = second % 5 == 0;
179
 
        bool draw_second = second == time_seconds;
180
 
        bool draw_minute = second == time_minute;
181
 
        bool draw_hour = second == time_hour;
 
178
        bool draw_tick = !segment && second % 5 == 0;
 
179
        bool draw_second = !segment && second == time_seconds;
 
180
        bool draw_minute = !segment && second == time_minute;
 
181
        bool draw_hour = !segment && second == time_hour;
182
182
 
183
183
        // set the LEDs
184
184
        digitalWrite( 13, HIGH );