Base project for FRDM K64F: - Blinking LED - USB Serial Port #aiot
Fork of mbed_blinky by
Revision 7:0589e594768c, committed 2015-03-24
- Comitter:
- rlinnmoran
- Date:
- Tue Mar 24 13:16:16 2015 +0000
- Parent:
- 6:e8cd76f38fa9
- Commit message:
- Initial Version
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 e8cd76f38fa9 -r 0589e594768c main.cpp --- a/main.cpp Fri May 09 19:58:03 2014 +0300 +++ b/main.cpp Tue Mar 24 13:16:16 2015 +0000 @@ -1,12 +1,19 @@ #include "mbed.h" DigitalOut myled(LED1); +Serial pc(USBTX, USBRX); int main() { + + pc.baud(9600); + while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); + + wait(0.1); + pc.printf("The quick brown fox jumps over the lazy dog. 1234567890.\r\n"); } }
diff -r e8cd76f38fa9 -r 0589e594768c mbed.bld --- a/mbed.bld Fri May 09 19:58:03 2014 +0300 +++ b/mbed.bld Tue Mar 24 13:16:16 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/ \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file