/mbed-os-snippet-IdleLoop

A mirrored example snippet from mbed-os-examples-docs_only

Primary LanguageC++

IdleLoop example

IdleLoop usage example for Mbed OS

This is an example showing the purpose of IdleLoop thread that is scheduled when no other threads are ready to run. In this example, we have a regular thread that is scheduled to run every 5 seconds. Because no other thread is scheduled to run, IdleLoop runs and toggles the LED.

MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.