Browse Source
Merge pull request #1150 from recrof/heltec_build_fixes
fix building issues with heltec wireless paper and heltec tracker
pull/1153/head
ripplebiz
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
20 additions and
4 deletions
-
variants/heltec_tracker/platformio.ini
-
variants/heltec_tracker/target.h
-
variants/heltec_wireless_paper/platformio.ini
-
variants/heltec_wireless_paper/target.h
|
|
|
@ -6,6 +6,14 @@ build_flags = |
|
|
|
-I variants/heltec_tracker |
|
|
|
-D HELTEC_LORA_V3 |
|
|
|
-D ARDUINO_USB_CDC_ON_BOOT=1 ; need for Serial |
|
|
|
-D ESP32_CPU_FREQ=80 |
|
|
|
-D P_LORA_DIO_1=14 |
|
|
|
-D P_LORA_NSS=8 |
|
|
|
-D P_LORA_RESET=RADIOLIB_NC |
|
|
|
-D P_LORA_BUSY=13 |
|
|
|
-D P_LORA_SCLK=9 |
|
|
|
-D P_LORA_MISO=11 |
|
|
|
-D P_LORA_MOSI=10 |
|
|
|
-D RADIO_CLASS=CustomSX1262 |
|
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper |
|
|
|
-D LORA_TX_POWER=22 |
|
|
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
#define RADIOLIB_STATIC_ONLY 1 |
|
|
|
#include <RadioLib.h> |
|
|
|
#include <helpers/radiolib/RadioLibWrappers.h> |
|
|
|
#include <helpers/HeltecV3Board.h> |
|
|
|
#include <../heltec_v3/HeltecV3Board.h> |
|
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h> |
|
|
|
#include <helpers/AutoDiscoverRTCClock.h> |
|
|
|
#include <helpers/SensorManager.h> |
|
|
|
|
|
|
|
@ -5,12 +5,20 @@ build_flags = |
|
|
|
${esp32_base.build_flags} |
|
|
|
-I variants/heltec_wireless_paper |
|
|
|
-D HELTEC_WIRELESS_PAPER |
|
|
|
-D ARDUINO_USB_CDC_ON_BOOT=1 ; need for Serial |
|
|
|
-D P_LORA_DIO_1=14 |
|
|
|
-D P_LORA_NSS=8 |
|
|
|
-D P_LORA_RESET=RADIOLIB_NC |
|
|
|
-D P_LORA_BUSY=13 |
|
|
|
-D P_LORA_SCLK=9 |
|
|
|
-D P_LORA_MISO=11 |
|
|
|
-D P_LORA_MOSI=10 |
|
|
|
-D RADIO_CLASS=CustomSX1262 |
|
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper |
|
|
|
-D LORA_TX_POWER=22 |
|
|
|
-D P_LORA_TX_LED=18 |
|
|
|
; -D PIN_BOARD_SDA=17 |
|
|
|
; -D PIN_BOARD_SCL=18 |
|
|
|
-D PIN_BOARD_SDA=17 |
|
|
|
-D PIN_BOARD_SCL=18 |
|
|
|
-D PIN_USER_BTN=0 |
|
|
|
-D PIN_VEXT_EN=45 |
|
|
|
-D PIN_VBAT_READ=20 |
|
|
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
#define RADIOLIB_STATIC_ONLY 1 |
|
|
|
#include <RadioLib.h> |
|
|
|
#include <helpers/radiolib/RadioLibWrappers.h> |
|
|
|
#include <helpers/HeltecV3Board.h> |
|
|
|
#include <../heltec_v3/HeltecV3Board.h> |
|
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h> |
|
|
|
#include <helpers/AutoDiscoverRTCClock.h> |
|
|
|
#include <helpers/SensorManager.h> |
|
|
|
|