Heltec v4: Add cli command to toggle gpio48
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user