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.
Fork of HelloWorld by
You are viewing an older revision! See the latest version
Homepage
What Does It Do?¶
Simply blinks an LED - embedded version of the classic beginners' Hello World program.
The source code is at the bottom of this page.
This code is identical to Simon Ford's /teams/mbed/code/mbed_blinky/ and ST's /teams/ST/code/Nucleo_blink_led/except that the source contains a few extra comment lines.
Library Information¶
The mbed library used by this code is: /users/mbed_official/code/mbed/rev/093f2bd7b9eb, which is revision 138 of the official mbed 2 library. Revision 138 was released on March 14, 2017. You can see this for yourself by inspecting the contents of the mbed.bld file, which points to the associated mbed library. /users/cputalk/code/HelloWorld/file/1e30337600e4/mbed.bld.
The library is automatically imported when you import this code into your online editor - in general you don't need to do anything special.
If Your Compile Fails¶
If your compile fails, it's most likely that you are using brand new hardware that was not yet included when revision 138 of the mbed library was released. In that case, update to the latest library. (see below)
Updating to the Latest mbed Library¶
In your online compiler, click on "mbed" in your program workspace, as in the picture below:
Then, on the right side of your screen, under Library Build Details, click on Update, as seen in the picture below:
Note how the Library Build Details window (above) actually shows the library's Status as new version available.
I will also attempt to update the mbed library version regularly. The latest update was on 3/23/2017 to revision 138.