Skip to content

Commit c9abb2f

Browse files
committed
Update tbeam sleep example
1 parent 031f52c commit c9abb2f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

examples/TBeamFactory/LoRaBoards.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ void disablePeripherals()
340340
PMU->disablePowerOutput(XPOWERS_DCDC5);
341341
PMU->disablePowerOutput(XPOWERS_ALDO1);
342342
#else
343+
PMU->disableSystemVoltageMeasure();
344+
PMU->disableVbusVoltageMeasure();
345+
PMU->disableBattVoltageMeasure();
346+
343347
// LoRa VDD
344348
PMU->disablePowerOutput(XPOWERS_ALDO2);
345349
//GNSS VDD

examples/TBeamFactory/README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# DATE: 20241119
12

23
# GPIO_WAKEUP_SLEEP_CUR
34

examples/TBeamFactory/TBeamFactory.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ void handleEvent(AceButton *button, uint8_t eventType, uint8_t buttonState)
210210

211211
// esp_sleep_enable_ext0_wakeup(GPIO_NUM_0, 0);
212212

213-
// TBeam-v1.2 ext1 sleep ~607uA ,
213+
// TBeam-v1.2 ext1 sleep ~540uA ,
214214
// See sleep_current.jpg
215215
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
216216

217217

218-
// GPIO WAKE UP + TIMER WAKE UP ~500uA
219-
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
220-
esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);
218+
// GPIO WAKE UP + TIMER WAKE UP ~530uA
219+
// esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
220+
// esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);
221221

222222
esp_deep_sleep_start();
223223

Loading

0 commit comments

Comments
 (0)