This is a very simple guide, reviewing the steps required to get Blinky working on an Mbed OS platform.

Mbed OS Blinky

This example shows the use of a DigitalOut object to represent an LED and use of the nonblocking Thread::wait() call. Using nonblocking calls is good practice because Mbed OS can schedule and run other threads while the first thread is waiting.

Building this example

Building with Arm Mbed CLI

To use Mbed CLI to build this example, follow the instructions in the documentation. The instructions here relate to using the Arm Online Compiler.

To use the Online Compiler, import this code into the Online Compiler, and select your platform from the top right. Compile the code using the compile button, load it onto your board and press the reset button on the board. The code will run on the board, and you will see the LED blink.

You can find more instructions for using the Mbed Online Compiler in the documentation.

History

Updating mbed-os to mbed-os-5.14.2 (#199) default tip

2 weeks ago, by mbed_official [Fri, 22 Nov 2019 16:00:04 +0000] rev 106

Updating mbed-os to mbed-os-5.14.2 (#199)



.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Corrected code snippet rendering on README. (#197)

2 weeks ago, by mbed_official [Tue, 19 Nov 2019 15:00:03 +0000] rev 105

Corrected code snippet rendering on README. (#197)


.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Change timeout

2 weeks ago, by arekzaluski [Tue, 19 Nov 2019 14:11:50 +0000] rev 104

Change timeout


Corrected code snippet rendering on README. (#197)

4 weeks ago, by mbed_official [Tue, 05 Nov 2019 10:00:04 +0000] rev 103

Corrected code snippet rendering on README. (#197)


.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Simplify application (#192)

4 weeks ago, by mbed_official [Mon, 04 Nov 2019 16:00:04 +0000] rev 102

Simplify application (#192)

The example project has been re-written to be simplified. It uses a delay within
a loop.

Runtime statistics has been removed and is only mentioned in the README. The
reader is invited to find out more. Runtime statistics is a topic on its own
and should not be implemented here.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Updating to mbed-os-5.14.1 (#196)

6 weeks ago, by mbed_official [Wed, 23 Oct 2019 18:00:04 +0100] rev 101

Updating to mbed-os-5.14.1 (#196)


.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Call `thread_sleep_for` to sleep (#193)

7 weeks ago, by mbed_official [Mon, 14 Oct 2019 14:00:04 +0100] rev 100

Call `thread_sleep_for` to sleep (#193)

This function allows the application to be built wit the bare metal
profile without requiring `rtos-api` to be added in the list of required libraries.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Updating mbed-os to mbed-os-5.14

2 months ago, by mbed_official [Tue, 01 Oct 2019 11:00:04 +0100] rev 99

Updating mbed-os to mbed-os-5.14

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


Merge pull request #186 from hugueskamba/hk-fix-warnings

3 months ago, by mbed_official [Wed, 04 Sep 2019 12:00:04 +0100] rev 98

Merge pull request #186 from hugueskamba/hk-fix-warnings

Clear all warnings generated by the example project files.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky


mbed-os-5.13.1 (#181)

4 months ago, by mbed_official [Tue, 23 Jul 2019 12:00:36 +0100] rev 97

mbed-os-5.13.1 (#181)

* Updating mbed-os to mbed-os-5.13.1

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky