This is the blinky program with serial communication
Diff: main.cpp
- Revision:
- 0:78525a886bac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 15 15:39:07 2020 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut led1 ( P1_13 ) ; +int main () { + led1 = 0; + int counter = 0; + + + while ( true ) { + led1 =! led1 ; + counter = counter + 1; + wait_ms (2000) ; + printf("PQP %d\n", counter); + } +} \ No newline at end of file