test

Committer:
josepbernad
Date:
Thu May 17 13:31:14 2018 +0000
Revision:
0:4e6ebad3be98
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
josepbernad 0:4e6ebad3be98 1 #include "mbed.h"
josepbernad 0:4e6ebad3be98 2 Serial pc(USBTX, USBRX);
josepbernad 0:4e6ebad3be98 3
josepbernad 0:4e6ebad3be98 4 DigitalOut led1(LED1);
josepbernad 0:4e6ebad3be98 5
josepbernad 0:4e6ebad3be98 6 // main() runs in its own thread in the OS
josepbernad 0:4e6ebad3be98 7 int main() {
josepbernad 0:4e6ebad3be98 8 while (true) {
josepbernad 0:4e6ebad3be98 9 led1 = !led1;
josepbernad 0:4e6ebad3be98 10 pc.printf("5 characters will be echoed. Start typing. \r\n");
josepbernad 0:4e6ebad3be98 11 wait(1.5);
josepbernad 0:4e6ebad3be98 12 }
josepbernad 0:4e6ebad3be98 13 }
josepbernad 0:4e6ebad3be98 14