c
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 |
--- /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