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

  • 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

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 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();
 
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();
59
61
  
60
62
protected:
61
63
  int debounce();