/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

1
 
/* -*- mode: c++; compile-command: "BOARD=pro5v make"; -*- */
2
1
/*
3
2
 * propeller-clock.ino
4
3
 *
170
169
        num += 4;
171
170
 
172
171
        // pin 4 needs to be inverted (it's driving a PNP)
173
 
        // NOTE: PIN 4 TEMPORARILY DISABLED
174
 
        if( num == 4 ) on = true; //!on
 
172
        if( num == 4 ) on = !on;
175
173
 
176
174
        digitalWrite( num, on? HIGH : LOW );
177
175
}