7 years, 4 months ago.

Deepsleep stm32L053

We saw the exaple below under mbed. Our Led will not flash. (It does if deepsleep is commented) Should this code run on a NUCLEO L053R8.

DigitalOut myled(PA_5); int main(){ int i = 0; while(1){ pc.printf("\r\n%d", i); myled=!myled; WakeUp::set(5); deepsleep(); i++; } }

Be the first to answer this question.