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.
Revision 91:3a205782066a, committed 2019-02-13
- Comitter:
- mbed_official
- Date:
- Wed Feb 13 18:24:11 2019 +0000
- Parent:
- 90:37c3d70b5cb6
- Child:
- 92:38a21a468f38
- Commit message:
- Initial commit.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky
Changed in this revision
--- a/CONTRIBUTING.md Thu Jan 17 09:00:02 2019 +0000 +++ b/CONTRIBUTING.md Wed Feb 13 18:24:11 2019 +0000 @@ -2,4 +2,4 @@ Mbed OS is an open-source, device software platform for the Internet of Things. Contributions are an important part of the platform, and our goal is to make it as simple as possible to become a contributor. -To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for [contributing to Mbed OS](https://os.mbed.com/docs/latest/reference/contributing.html). +To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for [contributing to Mbed OS](https://os.mbed.com/docs/mbed-os/latest/contributing/index.html).
--- 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:
--- a/mbed-os.lib Thu Jan 17 09:00:02 2019 +0000 +++ b/mbed-os.lib Wed Feb 13 18:24:11 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#a8f0c33eaa2c52babff9655417c36f4b5edd54d7 +https://github.com/ARMmbed/mbed-os/#ecb3c8c837162c73537bd0f3592c6e2a42994045
mbed-os-examples


L-Tek FF1705