Skip to content

Commit 5b6f399

Browse files
committed
Added support for heltec_wifi_lora_32_V3 and heltec_wifi_kit_32_V3
Changes to be committed: new file: variants/heltec_wifi_kit_32_v3/pins_arduino.h new file: variants/heltec_wifi_lora_32_V3/pins_arduino.h modified: boards.txt
1 parent c1dc4f2 commit 5b6f399

File tree

3 files changed

+397
-0
lines changed

3 files changed

+397
-0
lines changed

boards.txt

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11383,6 +11383,105 @@ heltec_wifi_kit_32.menu.EraseFlash.all.upload.erase_cmd=-e
1138311383

1138411384
##############################################################
1138511385

11386+
wifi_kit_32_V3.name=WiFi Kit 32(V3)
11387+
11388+
wifi_kit_32_V3.vid.0=0x303a
11389+
wifi_kit_32_V3.pid.0=0x1001
11390+
11391+
wifi_kit_32_V3.bootloader.tool=esptool_py
11392+
wifi_kit_32_V3.bootloader.tool.default=esptool_py
11393+
11394+
wifi_kit_32_V3.upload.tool=esptool_py
11395+
wifi_kit_32_V3.upload.tool.default=esptool_py
11396+
wifi_kit_32_V3.upload.tool.network=esp_ota
11397+
11398+
wifi_kit_32_V3.upload.maximum_size=1310720
11399+
wifi_kit_32_V3.upload.maximum_data_size=327680
11400+
wifi_kit_32_V3.upload.flags=
11401+
wifi_kit_32_V3.upload.extra_flags=
11402+
wifi_kit_32_V3.upload.use_1200bps_touch=false
11403+
wifi_kit_32_V3.upload.wait_for_upload_port=false
11404+
11405+
wifi_kit_32_V3.serial.disableDTR=false
11406+
wifi_kit_32_V3.serial.disableRTS=false
11407+
11408+
wifi_kit_32_V3.build.tarch=xtensa
11409+
wifi_kit_32_V3.build.bootloader_addr=0x0
11410+
wifi_kit_32_V3.build.target=esp32s3
11411+
wifi_kit_32_V3.build.mcu=esp32s3
11412+
wifi_kit_32_V3.build.core=esp32
11413+
wifi_kit_32_V3.build.variant=heltec_wifi_kit_32_V3
11414+
wifi_kit_32_V3.build.board=heltec_wifi_kit_32_V3
11415+
11416+
wifi_kit_32_V3.build.usb_mode=1
11417+
wifi_kit_32_V3.build.cdc_on_boot=0
11418+
wifi_kit_32_V3.build.msc_on_boot=0
11419+
wifi_kit_32_V3.build.dfu_on_boot=0
11420+
wifi_kit_32_V3.build.f_cpu=240000000L
11421+
wifi_kit_32_V3.build.flash_size=8MB
11422+
wifi_kit_32_V3.build.flash_freq=80m
11423+
wifi_kit_32_V3.build.flash_mode=dio
11424+
wifi_kit_32_V3.build.boot=qio
11425+
wifi_kit_32_V3.build.boot_freq=80m
11426+
wifi_kit_32_V3.build.partitions=default_8MB
11427+
wifi_kit_32_V3.build.loop_core=
11428+
wifi_kit_32_V3.build.event_core=
11429+
wifi_kit_32_V3.build.psram_type=qspi
11430+
wifi_kit_32_V3.build.memory_type={build.boot}_{build.psram_type}
11431+
11432+
wifi_kit_32_V3.menu.LoopCore.1=Core 1
11433+
wifi_kit_32_V3.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
11434+
wifi_kit_32_V3.menu.LoopCore.0=Core 0
11435+
wifi_kit_32_V3.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
11436+
11437+
wifi_kit_32_V3.menu.EventsCore.1=Core 1
11438+
wifi_kit_32_V3.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
11439+
wifi_kit_32_V3.menu.EventsCore.0=Core 0
11440+
wifi_kit_32_V3.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
11441+
11442+
wifi_kit_32_V3.menu.CPUFreq.240=240MHz (WiFi)
11443+
wifi_kit_32_V3.menu.CPUFreq.240.build.f_cpu=240000000L
11444+
wifi_kit_32_V3.menu.CPUFreq.160=160MHz (WiFi)
11445+
wifi_kit_32_V3.menu.CPUFreq.160.build.f_cpu=160000000L
11446+
wifi_kit_32_V3.menu.CPUFreq.80=80MHz (WiFi)
11447+
wifi_kit_32_V3.menu.CPUFreq.80.build.f_cpu=80000000L
11448+
wifi_kit_32_V3.menu.CPUFreq.40=40MHz
11449+
wifi_kit_32_V3.menu.CPUFreq.40.build.f_cpu=40000000L
11450+
wifi_kit_32_V3.menu.CPUFreq.20=20MHz
11451+
wifi_kit_32_V3.menu.CPUFreq.20.build.f_cpu=20000000L
11452+
wifi_kit_32_V3.menu.CPUFreq.10=10MHz
11453+
wifi_kit_32_V3.menu.CPUFreq.10.build.f_cpu=10000000L
11454+
11455+
wifi_kit_32_V3.menu.UploadSpeed.921600=921600
11456+
wifi_kit_32_V3.menu.UploadSpeed.921600.upload.speed=921600
11457+
wifi_kit_32_V3.menu.UploadSpeed.115200=115200
11458+
wifi_kit_32_V3.menu.UploadSpeed.115200.upload.speed=115200
11459+
wifi_kit_32_V3.menu.UploadSpeed.256000.windows=256000
11460+
wifi_kit_32_V3.menu.UploadSpeed.256000.upload.speed=256000
11461+
wifi_kit_32_V3.menu.UploadSpeed.230400.windows.upload.speed=256000
11462+
wifi_kit_32_V3.menu.UploadSpeed.230400=230400
11463+
wifi_kit_32_V3.menu.UploadSpeed.230400.upload.speed=230400
11464+
wifi_kit_32_V3.menu.UploadSpeed.460800.linux=460800
11465+
wifi_kit_32_V3.menu.UploadSpeed.460800.macosx=460800
11466+
wifi_kit_32_V3.menu.UploadSpeed.460800.upload.speed=460800
11467+
wifi_kit_32_V3.menu.UploadSpeed.512000.windows=512000
11468+
wifi_kit_32_V3.menu.UploadSpeed.512000.upload.speed=512000
11469+
11470+
wifi_kit_32_V3.menu.DebugLevel.none=None
11471+
wifi_kit_32_V3.menu.DebugLevel.none.build.code_debug=0
11472+
wifi_kit_32_V3.menu.DebugLevel.error=Error
11473+
wifi_kit_32_V3.menu.DebugLevel.error.build.code_debug=1
11474+
wifi_kit_32_V3.menu.DebugLevel.warn=Warn
11475+
wifi_kit_32_V3.menu.DebugLevel.warn.build.code_debug=2
11476+
wifi_kit_32_V3.menu.DebugLevel.info=Info
11477+
wifi_kit_32_V3.menu.DebugLevel.info.build.code_debug=3
11478+
wifi_kit_32_V3.menu.DebugLevel.debug=Debug
11479+
wifi_kit_32_V3.menu.DebugLevel.debug.build.code_debug=4
11480+
wifi_kit_32_V3.menu.DebugLevel.verbose=Verbose
11481+
wifi_kit_32_V3.menu.DebugLevel.verbose.build.code_debug=5
11482+
11483+
##############################################################
11484+
1138611485
heltec_wifi_lora_32.name=Heltec WiFi LoRa 32
1138711486

1138811487
heltec_wifi_lora_32.bootloader.tool=esptool_py
@@ -11607,6 +11706,148 @@ heltec_wifi_lora_32_V2.menu.EraseFlash.all.upload.erase_cmd=-e
1160711706

1160811707
##############################################################
1160911708

11709+
WIFI_LoRa_32_V3.name=WiFi LoRa 32(V3) / Wireless shell(V3) / Wireless stick lite (V3)
11710+
WIFI_LoRa_32_V3.vid.0=0x303a
11711+
WIFI_LoRa_32_V3.pid.0=0x1001
11712+
11713+
WIFI_LoRa_32_V3.bootloader.tool=esptool_py
11714+
WIFI_LoRa_32_V3.bootloader.tool.default=esptool_py
11715+
11716+
WIFI_LoRa_32_V3.upload.tool=esptool_py
11717+
WIFI_LoRa_32_V3.upload.tool.default=esptool_py
11718+
WIFI_LoRa_32_V3.upload.tool.network=esp_ota
11719+
11720+
WIFI_LoRa_32_V3.upload.maximum_size=1310720
11721+
WIFI_LoRa_32_V3.upload.maximum_data_size=327680
11722+
WIFI_LoRa_32_V3.upload.flags=
11723+
WIFI_LoRa_32_V3.upload.extra_flags=
11724+
WIFI_LoRa_32_V3.upload.use_1200bps_touch=false
11725+
WIFI_LoRa_32_V3.upload.wait_for_upload_port=false
11726+
11727+
WIFI_LoRa_32_V3.serial.disableDTR=false
11728+
WIFI_LoRa_32_V3.serial.disableRTS=false
11729+
11730+
WIFI_LoRa_32_V3.build.tarch=xtensa
11731+
WIFI_LoRa_32_V3.build.bootloader_addr=0x0
11732+
WIFI_LoRa_32_V3.build.target=esp32s3
11733+
WIFI_LoRa_32_V3.build.mcu=esp32s3
11734+
WIFI_LoRa_32_V3.build.core=esp32
11735+
WIFI_LoRa_32_V3.build.variant=heltec_wifi_lora_32_V3
11736+
WIFI_LoRa_32_V3.build.board=heltec_wifi_lora_32_V3
11737+
11738+
WIFI_LoRa_32_V3.build.usb_mode=1
11739+
WIFI_LoRa_32_V3.build.cdc_on_boot=0
11740+
WIFI_LoRa_32_V3.build.msc_on_boot=0
11741+
WIFI_LoRa_32_V3.build.dfu_on_boot=0
11742+
WIFI_LoRa_32_V3.build.f_cpu=240000000L
11743+
WIFI_LoRa_32_V3.build.flash_size=8MB
11744+
WIFI_LoRa_32_V3.build.flash_freq=80m
11745+
WIFI_LoRa_32_V3.build.flash_mode=dio
11746+
WIFI_LoRa_32_V3.build.boot=qio
11747+
WIFI_LoRa_32_V3.build.boot_freq=80m
11748+
WIFI_LoRa_32_V3.build.partitions=default_8MB
11749+
WIFI_LoRa_32_V3.build.loop_core=
11750+
WIFI_LoRa_32_V3.build.event_core=
11751+
WIFI_LoRa_32_V3.build.psram_type=qspi
11752+
WIFI_LoRa_32_V3.build.memory_type={build.boot}_{build.psram_type}
11753+
11754+
WIFI_LoRa_32_V3.menu.LoopCore.1=Core 1
11755+
WIFI_LoRa_32_V3.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
11756+
WIFI_LoRa_32_V3.menu.LoopCore.0=Core 0
11757+
WIFI_LoRa_32_V3.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
11758+
11759+
WIFI_LoRa_32_V3.menu.EventsCore.1=Core 1
11760+
WIFI_LoRa_32_V3.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
11761+
WIFI_LoRa_32_V3.menu.EventsCore.0=Core 0
11762+
WIFI_LoRa_32_V3.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
11763+
11764+
WIFI_LoRa_32_V3.menu.CPUFreq.240=240MHz (WiFi)
11765+
WIFI_LoRa_32_V3.menu.CPUFreq.240.build.f_cpu=240000000L
11766+
WIFI_LoRa_32_V3.menu.CPUFreq.160=160MHz (WiFi)
11767+
WIFI_LoRa_32_V3.menu.CPUFreq.160.build.f_cpu=160000000L
11768+
WIFI_LoRa_32_V3.menu.CPUFreq.80=80MHz (WiFi)
11769+
WIFI_LoRa_32_V3.menu.CPUFreq.80.build.f_cpu=80000000L
11770+
WIFI_LoRa_32_V3.menu.CPUFreq.40=40MHz
11771+
WIFI_LoRa_32_V3.menu.CPUFreq.40.build.f_cpu=40000000L
11772+
WIFI_LoRa_32_V3.menu.CPUFreq.20=20MHz
11773+
WIFI_LoRa_32_V3.menu.CPUFreq.20.build.f_cpu=20000000L
11774+
WIFI_LoRa_32_V3.menu.CPUFreq.10=10MHz
11775+
WIFI_LoRa_32_V3.menu.CPUFreq.10.build.f_cpu=10000000L
11776+
11777+
WIFI_LoRa_32_V3.menu.UploadSpeed.921600=921600
11778+
WIFI_LoRa_32_V3.menu.UploadSpeed.921600.upload.speed=921600
11779+
WIFI_LoRa_32_V3.menu.UploadSpeed.115200=115200
11780+
WIFI_LoRa_32_V3.menu.UploadSpeed.115200.upload.speed=115200
11781+
WIFI_LoRa_32_V3.menu.UploadSpeed.256000.windows=256000
11782+
WIFI_LoRa_32_V3.menu.UploadSpeed.256000.upload.speed=256000
11783+
WIFI_LoRa_32_V3.menu.UploadSpeed.230400.windows.upload.speed=256000
11784+
WIFI_LoRa_32_V3.menu.UploadSpeed.230400=230400
11785+
WIFI_LoRa_32_V3.menu.UploadSpeed.230400.upload.speed=230400
11786+
WIFI_LoRa_32_V3.menu.UploadSpeed.460800.linux=460800
11787+
WIFI_LoRa_32_V3.menu.UploadSpeed.460800.macosx=460800
11788+
WIFI_LoRa_32_V3.menu.UploadSpeed.460800.upload.speed=460800
11789+
WIFI_LoRa_32_V3.menu.UploadSpeed.512000.windows=512000
11790+
WIFI_LoRa_32_V3.menu.UploadSpeed.512000.upload.speed=512000
11791+
11792+
WIFI_LoRa_32_V3.menu.DebugLevel.none=None
11793+
WIFI_LoRa_32_V3.menu.DebugLevel.none.build.code_debug=0
11794+
WIFI_LoRa_32_V3.menu.DebugLevel.error=Error
11795+
WIFI_LoRa_32_V3.menu.DebugLevel.error.build.code_debug=1
11796+
WIFI_LoRa_32_V3.menu.DebugLevel.warn=Warn
11797+
WIFI_LoRa_32_V3.menu.DebugLevel.warn.build.code_debug=2
11798+
WIFI_LoRa_32_V3.menu.DebugLevel.info=Info
11799+
WIFI_LoRa_32_V3.menu.DebugLevel.info.build.code_debug=3
11800+
WIFI_LoRa_32_V3.menu.DebugLevel.debug=Debug
11801+
WIFI_LoRa_32_V3.menu.DebugLevel.debug.build.code_debug=4
11802+
WIFI_LoRa_32_V3.menu.DebugLevel.verbose=Verbose
11803+
WIFI_LoRa_32_V3.menu.DebugLevel.verbose.build.code_debug=5
11804+
11805+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.0=REGION_EU868
11806+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.0.build.band=REGION_EU868
11807+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.1=REGION_EU433
11808+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.1.build.band=REGION_EU433
11809+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.2=REGION_CN470
11810+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.2.build.band=REGION_CN470
11811+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.3=REGION_US915
11812+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.3.build.band=REGION_US915
11813+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.4=REGION_AU915
11814+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.4.build.band=REGION_AU915
11815+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.5=REGION_CN779
11816+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.5.build.band=REGION_CN779
11817+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.6=REGION_AS923
11818+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.6.build.band=REGION_AS923
11819+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.7=REGION_KR920
11820+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.7.build.band=REGION_KR920
11821+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.8=REGION_IN865
11822+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.8.build.band=REGION_IN865
11823+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.9=REGION_US915_HYBRID
11824+
WIFI_LoRa_32_V3.menu.LORAWAN_REGION.9.build.band=REGION_US915_HYBRID
11825+
11826+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.0=None
11827+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.0.build.LoRaWanDebugLevel=0
11828+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.1=Freq
11829+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.1.build.LoRaWanDebugLevel=1
11830+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.2=Freq && DIO
11831+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.2.build.LoRaWanDebugLevel=2
11832+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.3=Freq && DIO && PW
11833+
WIFI_LoRa_32_V3.menu.LoRaWanDebugLevel.3.build.LoRaWanDebugLevel=3
11834+
11835+
WIFI_LoRa_32_V3.menu.LORAWAN_DEVEUI.0=CUSTOM
11836+
WIFI_LoRa_32_V3.menu.LORAWAN_DEVEUI.0.build.LORAWAN_DEVEUI_AUTO=0
11837+
WIFI_LoRa_32_V3.menu.LORAWAN_DEVEUI.1=Generate By ChipID
11838+
WIFI_LoRa_32_V3.menu.LORAWAN_DEVEUI.1.build.LORAWAN_DEVEUI_AUTO=1
11839+
11840+
WIFI_LoRa_32_V3.menu.LORAWAN_PREAMBLE_LENGTH.0=8(default)
11841+
WIFI_LoRa_32_V3.menu.LORAWAN_PREAMBLE_LENGTH.0.build.LORAWAN_PREAMBLE_LENGTH=8
11842+
WIFI_LoRa_32_V3.menu.LORAWAN_PREAMBLE_LENGTH.1=16(For M00 and M00L)
11843+
WIFI_LoRa_32_V3.menu.LORAWAN_PREAMBLE_LENGTH.1.build.LORAWAN_PREAMBLE_LENGTH=16
11844+
11845+
WIFI_LoRa_32_V3.build.defines=-D{build.band} -DLoRaWAN_DEBUG_LEVEL={build.LoRaWanDebugLevel} -DACTIVE_REGION=LORAMAC_{build.band} -DLORAWAN_PREAMBLE_LENGTH={build.LORAWAN_PREAMBLE_LENGTH} -DLORAWAN_DEVEUI_AUTO={build.LORAWAN_DEVEUI_AUTO} -D{build.board}
11846+
WIFI_LoRa_32_V3.build.extra_libs=-lheltec
11847+
11848+
##############################################################
11849+
11850+
1161011851
heltec_wireless_stick.name=Heltec Wireless Stick
1161111852

1161211853
heltec_wireless_stick.bootloader.tool=esptool_py
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define WIFI_Kit_32_V3 true
7+
#define DISPLAY_HEIGHT 64
8+
#define DISPLAY_WIDTH 128
9+
10+
#define EXTERNAL_NUM_INTERRUPTS 16
11+
#define NUM_DIGITAL_PINS 40
12+
#define NUM_ANALOG_INPUTS 16
13+
14+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
15+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
16+
#define digitalPinHasPWM(p) (p < 34)
17+
18+
static const uint8_t LED_BUILTIN = 25;
19+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
21+
22+
static const uint8_t KEY_BUILTIN = 0;
23+
24+
static const uint8_t TX = 1;
25+
static const uint8_t RX = 3;
26+
27+
static const uint8_t SDA = 21;
28+
static const uint8_t SCL = 22;
29+
30+
static const uint8_t SS = 5;
31+
static const uint8_t MOSI = 23;
32+
static const uint8_t MISO = 19;
33+
static const uint8_t SCK = 18;
34+
35+
static const uint8_t A0 = 36;
36+
static const uint8_t A1 = 37;
37+
static const uint8_t A2 = 38;
38+
static const uint8_t A3 = 39;
39+
static const uint8_t A4 = 32;
40+
static const uint8_t A5 = 33;
41+
static const uint8_t A6 = 34;
42+
static const uint8_t A7 = 35;
43+
44+
static const uint8_t A10 = 4;
45+
static const uint8_t A11 = 0;
46+
static const uint8_t A12 = 2;
47+
static const uint8_t A13 = 15;
48+
static const uint8_t A14 = 13;
49+
static const uint8_t A15 = 12;
50+
static const uint8_t A16 = 14;
51+
static const uint8_t A17 = 27;
52+
static const uint8_t A18 = 25;
53+
static const uint8_t A19 = 26;
54+
55+
static const uint8_t T0 = 4;
56+
static const uint8_t T1 = 0;
57+
static const uint8_t T2 = 2;
58+
static const uint8_t T3 = 15;
59+
static const uint8_t T4 = 13;
60+
static const uint8_t T5 = 12;
61+
static const uint8_t T6 = 14;
62+
static const uint8_t T7 = 27;
63+
static const uint8_t T8 = 33;
64+
static const uint8_t T9 = 32;
65+
66+
static const uint8_t DAC1 = 25;
67+
static const uint8_t DAC2 = 26;
68+
69+
static const uint8_t Vext = 36;
70+
static const uint8_t LED = 35;
71+
static const uint8_t RST_OLED = 21;
72+
static const uint8_t SCL_OLED = 18;
73+
static const uint8_t SDA_OLED = 17;
74+
75+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)