Page 1 of 1
How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
Posted: Sat Feb 16, 2019 11:47 pm
by RetroZvoc
There are many boards which have an option for setting the CPU frequency. However, mine which is NODEMCU ESP32-S doesn't. Am I missing on something? Should I set the speed inside of the Arduino sketch?
Re: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
Posted: Sun Feb 17, 2019 3:26 pm
by Edje11
Cpu clock is fixed to 240Mhz in the Arduino ide.
Re: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
Posted: Fri Feb 22, 2019 2:53 pm
by falke5
#include "esp32-hal-cpu.h"
void setup(void){
setCpuFrequencyMhz(80); //Set CPU clock to 80MHz fo example
getCpuFrequencyMhz(); //Get CPU clock
}