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.
Fork of Task131 by
Revision 0:2c60e38674e4, committed 2015-09-24
- Comitter:
- noutram
- Date:
- Thu Sep 24 12:24:09 2015 +0000
- Child:
- 1:57dcf2e26432
- Commit message:
- Initial version 24-09-2015
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 24 12:24:09 2015 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" + +//Create an instance of a Serial object called pc +//Transmit and receive pins have names USBTX and USBRX +Serial pc(USBTX, USBRX); + +int main() { + + //Set the baud rate property (bits persecond) + pc.baud(9600); + + //Call the printf method on pc + pc.printf("Hello World\n"); + + //Run in an infinite loop + while(1) { + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Sep 24 12:24:09 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5 \ No newline at end of file