Closed mamanbudiman closed 4 years ago
Hi,
this is normal as the Serial use IT mode. When it starts enter in sleep mode the interrupt fire and then wakeup directly as the sleep mode is configured for WFI.
So, you have to ensure to have send all using flush()
:
Serial.println(repetitions);
Serial.flush();
LowPower.sleep();
On the ExternalWakeup example, If I add Serial.println(repetitions) instruction. Then the LowPower.sleep(); will not worked.