Skip to content

Commit 4ab5aa1

Browse files
yardafschrempf
authored andcommitted
variants: Heltec T114: Disable LED and GPS when powering off
This should reduce power consumption in hibernation. Signed-off-by: Jaroslav Škarvada <[email protected]>
1 parent 928dcc3 commit 4ab5aa1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

variants/heltec_t114/T114Board.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ class T114Board : public mesh::MainBoard {
4848
}
4949

5050
void powerOff() override {
51+
#ifdef LED_PIN
52+
digitalWrite(LED_PIN, HIGH);
53+
#endif
54+
#if ENV_INCLUDE_GPS == 1
55+
pinMode(GPS_EN, OUTPUT);
56+
digitalWrite(GPS_EN, LOW);
57+
#endif
5158
sd_power_system_off();
5259
}
5360

0 commit comments

Comments
 (0)