I noticed something unusual using the Low Power library today.
When printing text in the loop and using LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF);
to sleep for one second, all the text in the loop gets messed up in the Serial Monitor as if you chose the wrong baud rate.
Example code:
#include "LowPower.h"
void setup() {
Serial.begin(9600);
Serial.println(F("HELLO"));
Serial.println(F("HELLO"));
}
void loop() {
Serial.println(F("HELLO"));
LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF);
}
This code just prints
����11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=C!�11=
even when using different baud rates. (I used the same baud rate on both the arduino and the monitor).
Replacing the low power command with delay(1000);
works fine