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.
--- a/README.md Thu Jan 17 09:00:02 2019 +0000 +++ b/README.md Wed Feb 13 18:24:11 2019 +0000 @@ -1,8 +1,8 @@ # Getting started example for Mbed OS -This guide reviews the steps required to get Blinky with the addition of dynamic OS statistics working on an Mbed OS platform. +This guide reviews the steps required to get Blinky with the addition of dynamic OS statistics working on an Mbed OS platform. (Note: To see a rendered example you can import into the Arm Online Compiler, please see our [quick start](https://os.mbed.com/docs/mbed-os/latest/quick-start/online-with-the-online-compiler.html#importing-the-code).) -Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). +Please install [Mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). ## Import the example application @@ -50,8 +50,8 @@ ### Program your board -1. Connect your mbed device to the computer over USB. -1. Copy the binary file to the mbed device. +1. Connect your Mbed device to the computer over USB. +1. Copy the binary file to the Mbed device. 1. Press the reset button to start the program. The LED on your platform turns on and off. The main thread will additionally take a snapshot of the device's runtime statistics and display it over serial to your PC. The snapshot includes: