Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Homepage
mbed OS Blinky¶
This is one of the simplest examples of mbed OS. It shows the use of a DigitalOut object to represent an LED and the non-blocking Thread::wait()
call. This is good practice as if there were other threads, they could be scheduled and run while the first thread is waiting.
Building this example¶
Building with mbed CLI
If you'd like to use mbed CLI to build this, then you should follow the instructions in the Handbook TODO - new link. The instructions here relate to using the developer.mbed.org Online Compiler
If you'd like to use the online Compiler, then you can Import this code into your compiler, select your platform from the top right, compile the code using the compile button, load it onto your board, press the reset button on the board and you code will run. See the led blink!
More instructions for using the mbed Online Compiler can be found at TODO - update this