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.
Revision 0:8c99f03d60c7, committed 2017-04-02
- Comitter:
- ihanick
- Date:
- Sun Apr 02 18:35:47 2017 +0000
- Commit message:
- another blink
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Apr 02 18:35:47 2017 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +template <int off_ms=999, int on_ms=1> +void blink(DigitalOut& pin) { + pin = 1; + wait_ms(on_ms); + pin = 0; + wait_ms(off_ms); +} + +int main() { + while(1) { + blink(myled); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Apr 02 18:35:47 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/856d2700e60b \ No newline at end of file