Frästisch mit elektronischer Höhenverstellung mittels Schrittmotoren.
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.

ExEzButton.h 582B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * ExEzButton, supports long press detection. Inherits from ezButton.
  3. *
  4. * Erstellt: 05.01.2021
  5. * Autor: Flo Smilari
  6. */
  7. #include <ezButton.h>
  8. class ExEzButton: public ezButton {
  9. private:
  10. bool inverted;
  11. unsigned long longpressTime;
  12. unsigned long pressedTime;
  13. unsigned long releasedTime;
  14. public:
  15. ExEzButton(int pin);
  16. ExEzButton(int pin, bool _inverted);
  17. ExEzButton(int pin, bool _inverted, int _longpressTime);
  18. bool isPressing(void);
  19. bool isPressed();
  20. bool isLongPressed(void);
  21. void loop(void);
  22. };
  23. //Added by Sloeber
  24. #pragma once