Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Serial_test by
Revision 0:e148303bda4f, committed 2015-06-24
- Comitter:
- melmon
- Date:
- Wed Jun 24 10:26:25 2015 +0000
- Commit message:
- Initial Release
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 e148303bda4f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jun 24 10:26:25 2015 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +/* +To use, make sure that you have a connection between your serial port tx and rx pins +*/ +Serial pc(USBTX, USBRX); +Serial loop1(p9, p10); +Serial loop2(p13, p14); + +int main() { + pc.printf("You Should see a message about the port below: \n\r"); + loop1.printf("Serial Port 1 Works \n\r"); + loop2.printf("Serial Port 2 Works \n\r"); + while(1) { + //pc.putc(loop1.getc()); + pc.putc(loop1.getc()); + + + + + + } +}
diff -r 000000000000 -r e148303bda4f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jun 24 10:26:25 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file