test

Dependencies:   mbed

Committer:
wadh4587
Date:
Wed Jun 15 14:58:38 2016 +0000
Revision:
0:e5aa1648b1c5
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wadh4587 0:e5aa1648b1c5 1 #include "mbed.h"
wadh4587 0:e5aa1648b1c5 2
wadh4587 0:e5aa1648b1c5 3 DigitalOut myled(LED1);
wadh4587 0:e5aa1648b1c5 4 Serial pc(USBTX, USBRX); // serial terminal for the pc connection
wadh4587 0:e5aa1648b1c5 5 Serial dev(PTE0,PTE1); // for KL25Z... asuming one can't use the PTA1 version which is the stdio
wadh4587 0:e5aa1648b1c5 6 int main()
wadh4587 0:e5aa1648b1c5 7 {
wadh4587 0:e5aa1648b1c5 8 pc.baud(115200);
wadh4587 0:e5aa1648b1c5 9 // dev.baud(115200);
wadh4587 0:e5aa1648b1c5 10
wadh4587 0:e5aa1648b1c5 11 printf("Hello...\r\n");
wadh4587 0:e5aa1648b1c5 12 while(1) {
wadh4587 0:e5aa1648b1c5 13 myled = 1;
wadh4587 0:e5aa1648b1c5 14 wait(1.2);
wadh4587 0:e5aa1648b1c5 15 myled = 0;
wadh4587 0:e5aa1648b1c5 16 wait(0.2);
wadh4587 0:e5aa1648b1c5 17 }
wadh4587 0:e5aa1648b1c5 18 }