Skip to content

Commit

Permalink
๊Underclocked to 80 MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobalation committed Mar 26, 2020
1 parent eec5a1a commit cae873e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Node main module/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,15 @@ void fetchData()

void setup()
{
// underclock from 240 MHz to 80 MHz for power saving
setCpuFrequencyMhz(80);

// initialize serial, I2C and SPIFFS
Serial.begin(9600);
Wire.begin();

Serial.println("Running at " + String(getCpuFrequencyMhz()) + " MHz");

if (!SPIFFS.begin(true))
{
Serial.println("An Error has occurred while mounting SPIFFS. Rebooting.");
Expand Down

0 comments on commit cae873e

Please sign in to comment.