Move the rotation input to target.cpp

This commit is contained in:
Quency-D committed 2026-07-17 15:50:25 +08:00
1 parent 89856d934a
commit 28d3f22b07
3 files changed
+5 -17

No files matched your search

+5 -1
View File
@@ -1,5 +1,8 @@
#include <Arduino.h>
#include "target.h"
#if defined(UI_HAS_ROTARY_INPUT)
#include "HeltecRC32RotaryInput.h"
#endif
HeltecRC32Board board;
@@ -27,7 +30,8 @@ AutoDiscoverRTCClock rtc_clock(fallback_clock);
DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
#if defined(UI_HAS_ROTARY_INPUT)
RotaryInput& rotary_input = board.rotaryInput();
static HeltecRC32RotaryInput rotaryInputImpl(&board.periph_power);
RotaryInput& rotary_input = rotaryInputImpl;
#endif
#endif