Frästisch mit elektronischer Höhenverstellung mittels Schrittmotoren.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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. #include "Loopable.h"
  9. class ExEzButton: public ezButton, public Loopable {
  10. private:
  11. bool inverted;
  12. unsigned long longpressTime;
  13. unsigned long pressedTime;
  14. unsigned long releasedTime;
  15. public:
  16. ExEzButton(int pin);
  17. ExEzButton(int pin, bool _inverted);
  18. ExEzButton(int pin, bool _inverted, int _longpressTime);
  19. bool isPressing(void);
  20. bool isPressed();
  21. bool isLongPressed(void);
  22. void loop(void) override;
  23. };
  24. //Added by Sloeber
  25. #pragma once