Closed ghost closed 3 years ago
@QuitButton , you could please detail a bit, did you change the sleeping time (from 1000ms to x) did you find this change caused the system not entering the sleep mode did you check that the WFI in the HAL_PWR_EnterSLEEPMode is not reached or immediately returned
_#include "STM32LowPower.h" int x=1200;
void setup() { pinMode(LED_BUILTIN, OUTPUT); LowPower.begin(); }
void loop() { digitalWrite(LED_BUILTIN, HIGH); LowPower.sleep(x); delay(200); digitalWrite(LED_BUILTIN, LOW); LowPower.sleep(x); delay(200); }
It doesnt work. Compiled in Arduino platform
@Manolo8888 I've retest with a BluePill and it works. I close this issue as it is inactive and it works as expected.
I'm trying to work out what the default wakeup events are for the STM32.
I tried modifying the timed wakeup example from deepSleep to sleep, and now it does nothing - sleep mode is never started.