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

  • Committer: edam
  • Date: 2011-12-22 01:23:27 UTC
  • Revision ID: edam@waxworlds.org-20111222012327-orbuaeekm9y9ni39
renamed notes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * propeller-clock.ino
 
2
 * propeller-clock.pde
3
3
 *
4
 
 * Copyright (C) 2011 Tim Marston <tim@ed.am> and Dan Marston.
 
4
 * Copyright (C) 2011 Tim Marston <edam@waxworlds.org>
5
5
 *
6
6
 * This file is part of propeller-clock (hereafter referred to as "this
7
7
 * program"). See http://ed.am/software/arduino/propeller-clock for more
189
189
        // what needs to be drawn?
190
190
        bool draw_tick = !segment && second % 5 == 0;
191
191
        bool draw_second = !segment && second == time_seconds;
192
 
        bool draw_minute = !segment && second == time_minutes;
193
 
        bool draw_hour = !segment && second == time_hours;
 
192
        bool draw_minute = !segment && second == time_minute;
 
193
        bool draw_hour = !segment && second == time_hour;
194
194
 
195
195
        // set the LEDs
196
196
        digitalWrite( 13, HIGH );