From b8b8cf84d5811e95b941e54c1c3d583a46e86d45 Mon Sep 17 00:00:00 2001 From: Ollo Date: Wed, 7 Apr 2021 21:57:00 +0200 Subject: [PATCH] Reduce frequence of ESP32 to 80Mhz --- esp32/Readme.md | 1 - esp32/src/main.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/esp32/Readme.md b/esp32/Readme.md index 7e8720d..5844bb5 100644 --- a/esp32/Readme.md +++ b/esp32/Readme.md @@ -75,7 +75,6 @@ DS18B20 one wire temp sensor * alle Pumpen & Sensoren deaktiviert ## Masterplan 2.0 - * ESP heruntertakten Mhz heruntertakten * kein WLAN * Bewässerung muss immer laufen * Timeout um nicht ewig aufs WLAN zu warten diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index d32fc5b..aa75e13 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -403,6 +403,9 @@ void homieLoop() */ void setup() { + /* reduce power consumption */ + setCpuFrequencyMhz(80); + Serial.begin(115200); Serial << endl << endl;