/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-02-02 01:19:43 UTC
  • Revision ID: edam@waxworlds.org-20120202011943-x470v6nffow1cok6
lengthened button debounce time and turned on the pull-up resistor (oops!)

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, 5 );
 
105
static Bounce button( 3, 50 );
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 );
326
327
 
327
328
        // get the time from the real-time clock
328
329
        int rtc_data[ 7 ];