| 123456789101112131415161718192021222324252627282930313233 |
- /*
- * RotaryControler.h
- *
- * Created on: 04.02.2022
- * Author: FSmilari
- */
-
- #ifndef ROTARYCONTROLER_H_
- #define ROTARYCONTROLER_H_
-
- #include "RotaryEncoder.h"
- #include "ExEzButton.h"
-
- class RotaryControler {
- private:
- RotaryEncoder Encoder;
- ExEzButton RotarySwitch;
-
- public:
- RotaryControler(int RotEnc_Dta_Pin, int RotEnc_Clk_Pin, int RotEnc_Switch_Pin);
- void tick(void);
- void resetPosition(void);
- bool isSwitchPressed(void);
- bool isSwitchLongPressed(void);
- long getPosition(void);
- int getDirection(void);
- void setDebounceTime(unsigned long time);
- void loop(void);
- };
-
-
-
- #endif /* ROTARYCONTROLER_H_ */
|