Open cbusse1 opened 1 year ago
https://os.mbed.com/docs/mbed-os/v6.16/apis/power-optimization.html
#include "mbed.h" DigitalOut led(LED1); int main() { while (1) { // blink the LED led = !led; // sleep for two seconds ThisThread::sleep_for(2s); } }
#include "mbed.h" DigitalOut led(LED1); int main() { while (1) { // blink the LED led = !led; // sleep for two seconds wait_ms(2000); } }
Mbed OS 6 Docs | Power Optimization Tutorial contains deprecated wait_ms()
Page link
https://os.mbed.com/docs/mbed-os/v6.16/apis/power-optimization.html
Expected to find...
Found