You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the following code to put my LilyGo T-Display S3 into deep sleep, my meter is showing 6.4 mA of current draw using the onboard button as a GPIO wake up. I was expecting much less. Am I missing something?
// draws 6.42mA asleep and 147.7mA awake
void sleep() {
if (!_isSleeping) {
ESP_LOGI(TAG, "Going to sleep... night night");
_isSleeping = true;
// Configure GPIO button as wake-up source
esp_sleep_enable_ext0_wakeup((gpio_num_t)PIN_BUTTON_2, 0); // 0 for active low (button press)
gpio_set_pull_mode((gpio_num_t)PIN_BUTTON_2, GPIO_PULLUP_ONLY);
// kill the LCD power and backlight
gpio_set_direction((gpio_num_t)LCD_PIN_POWER, GPIO_MODE_OUTPUT);
gpio_set_direction((gpio_num_t)LCD_PIN_BK_LIGHT, GPIO_MODE_OUTPUT);
gpio_set_level((gpio_num_t)LCD_PIN_POWER, 0);
gpio_set_level((gpio_num_t)LCD_PIN_BK_LIGHT, 0);
// Enter deep sleep
esp_deep_sleep_start();
}
}
The text was updated successfully, but these errors were encountered:
When I use the following code to put my LilyGo T-Display S3 into deep sleep, my meter is showing 6.4 mA of current draw using the onboard button as a GPIO wake up. I was expecting much less. Am I missing something?
The text was updated successfully, but these errors were encountered: