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 9:addb47331495, committed 2022-09-26
- Comitter:
- devdori
- Date:
- Mon Sep 26 07:40:57 2022 +0000
- Parent:
- 8:872137b3a8a8
- Commit message:
- c
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 872137b3a8a8 -r addb47331495 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Sep 26 07:40:57 2022 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Serial pc(SERIAL_TX, SERIAL_RX); + +int count_blink = 0; + +int main() { + while(1) { + myled = 1; + //pc.printf("myled = 1\n"); + wait(0.2); + myled = 0; + //pc.printf("myled = 0\n"); + wait(0.2); + count_blink++; + pc.printf("The number of blink = %d\n", count_blink); + } +} \ No newline at end of file