Frästisch mit elektronischer Höhenverstellung mittels Schrittmotoren.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ExEzButton.h 643B

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