Add an ESP32_CPU_FREQ build flag to lower freq

This commit is contained in:
Florent 2025-03-09 15:49:35 +01:00
parent 676ba6d066
commit a706d90598
5 changed files with 19 additions and 0 deletions

View file

@ -726,6 +726,11 @@ void setup() {
delay(1000);
board.begin();
#ifdef ESP32_CPU_FREQ
setCpuFrequencyMhz(ESP32_CPU_FREQ);
#endif
#ifdef ESP32
fallback_clock.begin();
#endif