Heltec v4: Add cli command to toggle gpio48

This commit is contained in:
Matthias Wientapper
2026-01-13 21:55:39 +01:00
parent 4643f4d3a3
commit 46a44d10e7
3 changed files with 14 additions and 0 deletions

View File

@@ -16,6 +16,10 @@ void HeltecV4Board::begin() {
pinMode(P_LORA_PA_TX_EN, OUTPUT);
digitalWrite(P_LORA_PA_TX_EN,LOW);
#ifdef PIN_GPIO
pinMode(PIN_GPIO, OUTPUT);
digitalWrite(PIN_GPIO, LOW);
#endif
periph_power.begin();

View File

@@ -40,6 +40,7 @@ build_flags =
-D ENV_INCLUDE_GPS=1
-D PIN_ADC_CTRL=37
-D PIN_VBAT_READ=1
-D PIN_GPIO=48
build_src_filter = ${esp32_base.build_src_filter}
+<../variants/heltec_v4>
+<helpers/sensors>