From c2451f1649cbd54f0a604e40e13392bd937446f1 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 7 Feb 2018 19:13:25 +0100 Subject: [PATCH] add standby with display stub --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 6b94487..e77cdc2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,8 @@ #include #include "apps/sntp/sntp.h" +#include "driver/rtc_io.h" + #include "main.h" #include "hardware.h" #include "mp3.h" @@ -242,6 +244,7 @@ void suspend(uint32_t secondsToSleep) { u8g2.setFont(u8g2_font_inb19_mf); u8g2.drawStr(0, 20, timeStr); // ToDo: set rtc gpio resistors + rtc_gpio_hold_en((gpio_num_t)16); esp_sleep_enable_timer_wakeup(1000000LL * 60); }