Files
lora_meshtastic_project/code/firmware-2.7.15.567b8ea/src/input/RotaryEncoderInterruptImpl1.h
T
kevin 26d5971aba 稳定版代码
Signed-off-by: 吴文峰 <kevin@lmve.net>
2026-03-06 19:52:05 +08:00

21 lines
743 B
C++

#pragma once
#include "RotaryEncoderInterruptBase.h"
/**
* @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.
*/
class RotaryEncoderInterruptImpl1 : public RotaryEncoderInterruptBase
{
public:
RotaryEncoderInterruptImpl1();
bool init();
static void handleIntA();
static void handleIntB();
static void handleIntPressed();
};
extern RotaryEncoderInterruptImpl1 *rotaryEncoderInterruptImpl1;