Combine rotary with canned messages.

This commit is contained in:
Balazs Kelemen
2022-01-09 10:08:31 +01:00
parent c7e62142e9
commit 772dfe39dc
7 changed files with 184 additions and 218 deletions

View File

@@ -9,6 +9,7 @@
#include "plugins/RoutingPlugin.h"
#include "plugins/AdminPlugin.h"
#include "plugins/CannedMessagePlugin.h"
#include "plugins/input/RotaryEncoderInterruptImpl1.h"
#ifndef NO_ESP32
#include "plugins/esp32/SerialPlugin.h"
#include "plugins/esp32/EnvironmentalMeasurementPlugin.h"
@@ -31,7 +32,11 @@ void setupPlugins()
new RemoteHardwarePlugin();
new ReplyPlugin();
cannedMessagePlugin = new CannedMessagePlugin();
rotaryEncoderInterruptImpl1 =
new RotaryEncoderInterruptImpl1(
22, 23, 21,
INPUT_EVENT_UP, INPUT_EVENT_DOWN, INPUT_EVENT_SELECT);
cannedMessagePlugin = new CannedMessagePlugin(rotaryEncoderInterruptImpl1);
#ifndef NO_ESP32
// Only run on an esp32 based device.