Add a rotary encoder

This commit is contained in:
Quency-D
2026-07-15 17:45:24 +08:00
parent 6c9f0907ee
commit 05d4bd2f7f
10 changed files with 207 additions and 11 deletions
+11 -1
View File
@@ -1,4 +1,14 @@
#include "HeltecRC32Board.h"
#if defined(UI_HAS_ROTARY_INPUT)
#include "HeltecRC32RotaryInput.h"
#endif
#if defined(UI_HAS_ROTARY_INPUT)
RotaryInput& HeltecRC32Board::rotaryInput() {
static HeltecRC32RotaryInput input(&periph_power);
return input;
}
#endif
void HeltecRC32Board::begin() {
ESP32Board::begin();
@@ -17,7 +27,7 @@ void HeltecRC32Board::begin() {
#endif
periph_power.begin();
vext_power.begin();
periph_power.claim();
esp_reset_reason_t reason = esp_reset_reason();
if (reason == ESP_RST_DEEPSLEEP) {