/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-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

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 );