test

Dependencies:   mbed

main.cpp

Committer:
wadh4587
Date:
2016-06-15
Revision:
0:e5aa1648b1c5

File content as of revision 0:e5aa1648b1c5:

#include "mbed.h"

DigitalOut myled(LED1);
Serial pc(USBTX, USBRX); // serial terminal for the pc connection
Serial dev(PTE0,PTE1);  // for KL25Z... asuming one can't use the PTA1 version which is the stdio
int main()
{
    pc.baud(115200);
//   dev.baud(115200);

    printf("Hello...\r\n");
    while(1) {
        myled = 1;
        wait(1.2);
        myled = 0;
        wait(0.2);
    }
}