Skip to content

Commit 5b7d738

Browse files
committed
fix building issues with heltec wireless paper and heltec tracker
1 parent a9397c1 commit 5b7d738

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

variants/heltec_tracker/platformio.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ build_flags =
66
-I variants/heltec_tracker
77
-D HELTEC_LORA_V3
88
-D ARDUINO_USB_CDC_ON_BOOT=1 ; need for Serial
9+
-D ESP32_CPU_FREQ=80
10+
-D P_LORA_DIO_1=14
11+
-D P_LORA_NSS=8
12+
-D P_LORA_RESET=RADIOLIB_NC
13+
-D P_LORA_BUSY=13
14+
-D P_LORA_SCLK=9
15+
-D P_LORA_MISO=11
16+
-D P_LORA_MOSI=10
917
-D RADIO_CLASS=CustomSX1262
1018
-D WRAPPER_CLASS=CustomSX1262Wrapper
1119
-D LORA_TX_POWER=22

variants/heltec_tracker/target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define RADIOLIB_STATIC_ONLY 1
44
#include <RadioLib.h>
55
#include <helpers/radiolib/RadioLibWrappers.h>
6-
#include <helpers/HeltecV3Board.h>
6+
#include <../heltec_v3/HeltecV3Board.h>
77
#include <helpers/radiolib/CustomSX1262Wrapper.h>
88
#include <helpers/AutoDiscoverRTCClock.h>
99
#include <helpers/SensorManager.h>

variants/heltec_wireless_paper/platformio.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ build_flags =
55
${esp32_base.build_flags}
66
-I variants/heltec_wireless_paper
77
-D HELTEC_WIRELESS_PAPER
8+
-D ARDUINO_USB_CDC_ON_BOOT=1 ; need for Serial
9+
-D P_LORA_DIO_1=14
10+
-D P_LORA_NSS=8
11+
-D P_LORA_RESET=RADIOLIB_NC
12+
-D P_LORA_BUSY=13
13+
-D P_LORA_SCLK=9
14+
-D P_LORA_MISO=11
15+
-D P_LORA_MOSI=10
816
-D RADIO_CLASS=CustomSX1262
917
-D WRAPPER_CLASS=CustomSX1262Wrapper
1018
-D LORA_TX_POWER=22
1119
-D P_LORA_TX_LED=18
12-
; -D PIN_BOARD_SDA=17
13-
; -D PIN_BOARD_SCL=18
20+
-D PIN_BOARD_SDA=17
21+
-D PIN_BOARD_SCL=18
1422
-D PIN_USER_BTN=0
1523
-D PIN_VEXT_EN=45
1624
-D PIN_VBAT_READ=20

variants/heltec_wireless_paper/target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define RADIOLIB_STATIC_ONLY 1
44
#include <RadioLib.h>
55
#include <helpers/radiolib/RadioLibWrappers.h>
6-
#include <helpers/HeltecV3Board.h>
6+
#include <../heltec_v3/HeltecV3Board.h>
77
#include <helpers/radiolib/CustomSX1262Wrapper.h>
88
#include <helpers/AutoDiscoverRTCClock.h>
99
#include <helpers/SensorManager.h>

0 commit comments

Comments
 (0)