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

  • Committer: edam
  • Date: 2011-12-22 01:27:11 UTC
  • Revision ID: edam@waxworlds.org-20111222012711-s9o130j1506clnxa
updated propeller clock code for arduino-1.0 and fixed a compiler error

Show diffs side-by-side

added added

removed removed

1
1
/*
2
 
 * propeller-clock.pde
 
2
 * propeller-clock.ino
3
3
 *
4
 
 * Copyright (C) 2011 Tim Marston <edam@waxworlds.org>
 
4
 * Copyright (C) 2011 Tim Marston <tim@ed.am> and Dan Marston.
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_minute;
193
 
        bool draw_hour = !segment && second == time_hour;
 
192
        bool draw_minute = !segment && second == time_minutes;
 
193
        bool draw_hour = !segment && second == time_hours;
194
194
 
195
195
        // set the LEDs
196
196
        digitalWrite( 13, HIGH );