/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/utility/Bounce.h

  • Committer: edam
  • Date: 2011-12-02 19:57:07 UTC
  • Revision ID: edam@waxworlds.org-20111202195707-lko4ap3pfe1jrgd9
renamed code directories and updated the comments in the code

Show diffs side-by-side

added added

removed removed

52
52
  void write(int new_state);
53
53
    // Returns the number of milliseconds the pin has been in the current state
54
54
  unsigned long duration();
55
 
    // The risingEdge method is true for one scan after the de-bounced
56
 
    // input goes from off-to-on.
57
 
  bool risingEdge();
58
 
    // The fallingEdge method it true for one scan after the
59
 
    // de-bounced input goes from on-to-off.
60
 
  bool fallingEdge();
 
55
  // The risingEdge method is true for one scan after the de-bounced input goes from off-to-on.
 
56
        bool risingEdge();
 
57
  // The fallingEdge  method it true for one scan after the de-bounced input goes from on-to-off. 
 
58
        bool fallingEdge();
61
59
  
62
60
protected:
63
61
  int debounce();