mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-08-26 22:39:45 +00:00
Add a rotary encoder
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user