Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debounce.h 231B

1234567891011121314151617
  1. #ifndef _DEBOUNCE_H_
  2. #define _DEBOUNCE_H_
  3. class Debouncer {
  4. public:
  5. Debouncer(int p);
  6. int poll();
  7. private:
  8. int pin;
  9. int currentState;
  10. int lastState;
  11. unsigned long lastTime;
  12. };
  13. #endif // _DEBOUNCE_H_