How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?

RetroZvoc
Posts: 9
Joined: Tue Nov 27, 2018 1:21 am

How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?

Postby RetroZvoc » Sat Feb 16, 2019 11:47 pm

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?

Edje11
Posts: 18
Joined: Thu May 17, 2018 10:33 am
Contact:

Re: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?

Postby Edje11 » Sun Feb 17, 2019 3:26 pm

Cpu clock is fixed to 240Mhz in the Arduino ide.

falke5
Posts: 4
Joined: Fri Feb 22, 2019 2:49 pm

Re: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?

Postby falke5 » Fri Feb 22, 2019 2:53 pm

#include "esp32-hal-cpu.h"

void setup(void){
setCpuFrequencyMhz(80); //Set CPU clock to 80MHz fo example
getCpuFrequencyMhz(); //Get CPU clock
}

Who is online

Users browsing this forum: PepeTheGreat and 47 guests