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.

RotaryControler.h 666B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * RotaryControler.h
  3. *
  4. * Created on: 04.02.2022
  5. * Author: FSmilari
  6. */
  7. #ifndef ROTARYCONTROLER_H_
  8. #define ROTARYCONTROLER_H_
  9. #include "RotaryEncoder.h"
  10. #include "ExEzButton.h"
  11. class RotaryControler {
  12. private:
  13. RotaryEncoder Encoder;
  14. ExEzButton RotarySwitch;
  15. public:
  16. RotaryControler(int RotEnc_Dta_Pin, int RotEnc_Clk_Pin, int RotEnc_Switch_Pin);
  17. void tick(void);
  18. void resetPosition(void);
  19. bool isSwitchPressed(void);
  20. bool isSwitchLongPressed(void);
  21. long getPosition(void);
  22. int getDirection(void);
  23. void setDebounceTime(unsigned long time);
  24. void loop(void);
  25. };
  26. #endif /* ROTARYCONTROLER_H_ */