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 mbed-os-example-mbed5-blinky by
Pinout
led blink example
#include "mbed.h" DigitalOut einkshield_led1(D7); // main() runs in its own thread in the OS int main() { while (true) { einkshield_led1 = !einkshield_led1; wait(0.5); } }
Revision 73:acf49c59625d, committed 2018-07-31
- Comitter:
- jauming
- Date:
- Tue Jul 31 06:11:50 2018 +0000
- Parent:
- 72:6d94d755fbb0
- Commit message:
- led blinky example
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jul 17 08:45:03 2018 +0100 +++ b/main.cpp Tue Jul 31 06:11:50 2018 +0000 @@ -1,11 +1,11 @@ #include "mbed.h" -DigitalOut led1(LED1); +DigitalOut einkshield_led1(D7); // main() runs in its own thread in the OS int main() { while (true) { - led1 = !led1; + einkshield_led1 = !einkshield_led1; wait(0.5); } }