/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: 2012-01-26 00:08:14 UTC
  • Revision ID: edam@waxworlds.org-20120126000814-tcoazbkb84e0s1wl
abstracted turning leds on/off to cope with PNP-inverted pin 4 and fixed warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
static bool inc_draw_mode = false;
103
103
 
104
104
// a bounce-managed button
105
 
static Bounce button( 3, 50 );
 
105
static Bounce button( 3, 5 );
106
106
 
107
107
// the time
108
108
static int time_hours = 0;
323
323
 
324
324
        // set up mode-switch button on pin 3
325
325
        pinMode( 3, INPUT );
326
 
        digitalWrite( 3, HIGH );
327
326
 
328
327
        // get the time from the real-time clock
329
328
        int rtc_data[ 7 ];