mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-17 18:42:10 +00:00
23 lines
627 B
C++
23 lines
627 B
C++
#pragma once
|
|
#include "kbUsbBase.h"
|
|
#include "main.h"
|
|
|
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
|
|
|
/**
|
|
* @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 KbUsbImpl : public KbUsbBase
|
|
{
|
|
public:
|
|
KbUsbImpl();
|
|
void init();
|
|
};
|
|
|
|
extern KbUsbImpl *kbUsbImpl;
|
|
|
|
#endif |