How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
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?
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?
#include "esp32-hal-cpu.h"
void setup(void){
setCpuFrequencyMhz(80); //Set CPU clock to 80MHz fo example
getCpuFrequencyMhz(); //Get CPU clock
}
void setup(void){
setCpuFrequencyMhz(80); //Set CPU clock to 80MHz fo example
getCpuFrequencyMhz(); //Get CPU clock
}
Who is online
Users browsing this forum: No registered users and 118 guests