Files
firmware/src/input/RotaryEncoderInterruptImpl1.h

22 lines
747 B
C
Raw Normal View History

2022-01-09 10:08:31 +01:00
#pragma once
#include "RotaryEncoderInterruptBase.h"
2022-01-11 13:12:04 +01:00
/**
* @brief The idea behind this class to have static methods for the event handlers.
* Check attachInterrupt() at RotaryEncoderInteruptBase.cpp
* Technically you can have as many rotary encoders hardver attached
* to your device as you wish, but you always need to have separate event
* handlers, thus you need to have a RotaryEncoderInterrupt implementation.
*/
2022-01-09 10:08:31 +01:00
class RotaryEncoderInterruptImpl1 :
public RotaryEncoderInterruptBase
{
public:
2022-01-11 13:12:04 +01:00
RotaryEncoderInterruptImpl1();
2022-01-12 09:26:42 +01:00
void init();
2022-01-09 10:08:31 +01:00
static void handleIntA();
static void handleIntB();
static void handleIntPressed();
};
extern RotaryEncoderInterruptImpl1 *rotaryEncoderInterruptImpl1;