mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 14:10:53 +00:00
19 lines
606 B
C
19 lines
606 B
C
|
|
#pragma once
|
||
|
|
#include "SerialKeyboard.h"
|
||
|
|
#include "main.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 SerialKeyboardImpl : public SerialKeyboard
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SerialKeyboardImpl();
|
||
|
|
void init();
|
||
|
|
};
|
||
|
|
|
||
|
|
extern SerialKeyboardImpl *aSerialKeyboardImpl;
|