/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/util/Bounce.cpp

  • Committer: edam
  • Date: 2011-12-30 15:51:45 UTC
  • Revision ID: edam@waxworlds.org-20111230155145-x2k3dqw6a2yer7c5
switched to new arduino.mk build system

Show diffs side-by-side

added added

removed removed

81
81
        
82
82
}
83
83
 
84
 
// The risingEdge method is true for one scan after the de-bounced
85
 
// input goes from off-to-on.
 
84
// The risingEdge method is true for one scan after the de-bounced input goes from off-to-on.
86
85
bool  Bounce::risingEdge() { return stateChanged && state; }
87
 
// The fallingEdge method it true for one scan after the de-bounced
88
 
// input goes from on-to-off.
 
86
// The fallingEdge  method it true for one scan after the de-bounced input goes from on-to-off. 
89
87
bool  Bounce::fallingEdge() { return stateChanged && !state; }
90
88