Skip to content

Commit 795989b

Browse files
authored
Merge pull request #2966 from Quency-D/heltec-rc32
Add Heltec rc32 board
2 parents 4aec46b + fd7b35f commit 795989b

14 files changed

Lines changed: 1463 additions & 0 deletions

File tree

boards/heltec-rc32.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "default_16MB.csv",
6+
"memory_type": "qio_opi"
7+
},
8+
"core": "esp32",
9+
"extra_flags": [
10+
"-DBOARD_HAS_PSRAM",
11+
"-DARDUINO_USB_CDC_ON_BOOT=1",
12+
"-DARDUINO_USB_MODE=1",
13+
"-DARDUINO_RUNNING_CORE=1",
14+
"-DARDUINO_EVENT_RUNNING_CORE=1"
15+
],
16+
"f_cpu": "240000000L",
17+
"f_flash": "80000000L",
18+
"flash_mode": "qio",
19+
"psram_type": "opi",
20+
"hwids": [["0x303A", "0x1001"]],
21+
"mcu": "esp32s3",
22+
"variant": "heltec_rc32"
23+
},
24+
"connectivity": ["wifi", "bluetooth", "lora"],
25+
"debug": {
26+
"default_tool": "esp-builtin",
27+
"onboard_tools": ["esp-builtin"],
28+
"openocd_target": "esp32s3.cfg"
29+
},
30+
"frameworks": ["arduino", "espidf"],
31+
"name": "Heltec RC32 (16 MB FLASH, 8 MB PSRAM)",
32+
"upload": {
33+
"flash_size": "16MB",
34+
"maximum_ram_size": 327680,
35+
"maximum_size": 16777216,
36+
"use_1200bps_touch": true,
37+
"wait_for_upload_port": true,
38+
"require_upload_port": true,
39+
"speed": 921600
40+
},
41+
"url": "https://heltec.org/",
42+
"vendor": "Heltec"
43+
}

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,16 @@ void UITask::loop() {
747747
c = handleTripleClick(KEY_SELECT);
748748
}
749749
#endif
750+
#if defined(UI_HAS_ROTARY_INPUT)
751+
RotaryInputEvent rotaryEv = rotary_input.poll();
752+
if (c == 0 && _display != NULL && _display->isOn()) {
753+
if (rotaryEv == RotaryInputEvent::Next) {
754+
c = KEY_NEXT;
755+
} else if (rotaryEv == RotaryInputEvent::Prev) {
756+
c = KEY_PREV;
757+
}
758+
}
759+
#endif
750760
#if defined(PIN_USER_BTN_ANA)
751761
if (abs(millis() - _analogue_pin_read_millis) > 10) {
752762
int ev = analog_btn.check();

0 commit comments

Comments
 (0)