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.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Dec 13 14:15:02 2018 +0000
Parent:
83:7b0fac4e7fd2
Child:
85:b4c5dbbf74e3
Commit message:
Merge pull request #148 from kegilbert/patch-2

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

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
--- a/README.md	Fri Nov 30 23:45:02 2018 +0000
+++ b/README.md	Thu Dec 13 14:15:02 2018 +0000
@@ -114,7 +114,7 @@
 
 The default baud rate for this application is set to `115200` and may be modified in the `mbed_app.json` file.
 
-You can find more information on the Mbed OS configuration tools and serail communication in Mbed OS in the related [related links section](#related-links).
+You can find more information on the Mbed OS configuration tools and serial communication in Mbed OS in the related [related links section](#related-links).
 
 The output should contain the following block transmitted at the blinking LED frequency (actual values may vary depending on your target, build profile, and toolchain):