test

main.cpp

Committer:
josepbernad
Date:
2018-05-17
Revision:
0:4e6ebad3be98

File content as of revision 0:4e6ebad3be98:

#include "mbed.h"
Serial pc(USBTX, USBRX);

DigitalOut led1(LED1);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        pc.printf("5 characters will be echoed. Start typing. \r\n");
        wait(1.5);
    }
}