Closed will127534 closed 7 years ago
Note that we'll keep tickless mode disabled in FreeRTOS. Therefore this API will actually put the board "deeper" into WFI sleep mode - which should save more power than an "idle (delay)" sleep.
Hi @will127534 , how long does the sleep
API is being able to sleep in your case?
In my case the enter_sleep_mode
succeeded but immediately wakes up.
Serial.print("start sleep, time=");
Serial.println(millis());
bool isOK = sleep(5000);
Serial.print("sleep result=");
Serial.println(isOK);
Serial.print("time=");
Serial.println(millis());
And the output is always
start sleep, time=1
sleep result=1
time=5
We'll set this enhancement to pending statue first, until a more concete usage scenario appears.
Hi all, I notice that MT7697 SDK have sleep function so maybe Arduino API can add a sleep() function to reduce power consumption
here is the function at /core/arduino/delay.c