Browse Source
Merge pull request #326 from memo-567/heltec_v3_sensors
Adding sensor classes support to Heltec v3
pull/332/head
ripplebiz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
12 additions and
2 deletions
-
variants/heltec_v3/platformio.ini
-
variants/heltec_v3/target.cpp
-
variants/heltec_v3/target.h
|
|
|
@ -17,11 +17,20 @@ build_flags = |
|
|
|
-D SX126X_DIO3_TCXO_VOLTAGE=1.8 |
|
|
|
-D SX126X_CURRENT_LIMIT=140 |
|
|
|
-D SX126X_RX_BOOSTED_GAIN=1 |
|
|
|
-D ENV_INCLUDE_AHTX0=1 |
|
|
|
-D ENV_INCLUDE_BME280=1 |
|
|
|
-D ENV_INCLUDE_INA3221=1 |
|
|
|
-D ENV_INCLUDE_INA219=1 |
|
|
|
build_src_filter = ${esp32_base.build_src_filter} |
|
|
|
+<../variants/heltec_v3> |
|
|
|
+<helpers/sensors> |
|
|
|
lib_deps = |
|
|
|
${esp32_base.lib_deps} |
|
|
|
adafruit/Adafruit SSD1306 @ ^2.5.13 |
|
|
|
adafruit/Adafruit INA3221 Library @ ^1.0.1 |
|
|
|
adafruit/Adafruit INA219 @ ^1.2.3 |
|
|
|
adafruit/Adafruit AHTX0 @ ^2.0.5 |
|
|
|
adafruit/Adafruit BME280 Library @ ^2.3.0 |
|
|
|
|
|
|
|
[env:Heltec_v3_repeater] |
|
|
|
extends = Heltec_lora32_v3 |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ WRAPPER_CLASS radio_driver(radio, board); |
|
|
|
|
|
|
|
ESP32RTCClock fallback_clock; |
|
|
|
AutoDiscoverRTCClock rtc_clock(fallback_clock); |
|
|
|
SensorManager sensors; |
|
|
|
EnvironmentSensorManager sensors; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ |
|
|
|
#include <helpers/CustomSX1262Wrapper.h> |
|
|
|
#include <helpers/AutoDiscoverRTCClock.h> |
|
|
|
#include <helpers/SensorManager.h> |
|
|
|
#include <helpers/sensors/EnvironmentSensorManager.h> |
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
#include <helpers/ui/SSD1306Display.h> |
|
|
|
#endif |
|
|
|
@ -14,7 +15,7 @@ |
|
|
|
extern HeltecV3Board board; |
|
|
|
extern WRAPPER_CLASS radio_driver; |
|
|
|
extern AutoDiscoverRTCClock rtc_clock; |
|
|
|
extern SensorManager sensors; |
|
|
|
extern EnvironmentSensorManager sensors; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
extern DISPLAY_CLASS display; |
|
|
|
|