![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-K64 Serial basic demo
Revision 0:7dfe47e78cf1, committed 2014-07-09
- Comitter:
- APanecatl
- Date:
- Wed Jul 09 19:32:27 2014 +0000
- Commit message:
- rev 1.0
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 7dfe47e78cf1 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jul 09 19:32:27 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +//Digital output declaration +DigitalOut Blue(LED3); + +//Serial port (UART) configuration +Serial pc(USBTX,USBRX); + +int main() +{ + Blue=1; + pc.printf("Serial code example\r\n"); + while(1) + { + Blue=0; + pc.putc(pc.getc()); + } + +} \ No newline at end of file
diff -r 000000000000 -r 7dfe47e78cf1 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jul 09 19:32:27 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721 \ No newline at end of file