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 frdm_echo by
main.cpp
- Committer:
- silverpanda
- Date:
- 2014-04-13
- Revision:
- 0:6898e364f29a
- Child:
- 1:20033a89af0e
File content as of revision 0:6898e364f29a:
// Print "Hello World" to the PC #include "mbed.h" Serial usbSerial(USBTX, USBRX); void sendText(char *thisText) { usbSerial.printf(thisText); } //----------------------------------------------------------------------------- void helloWorld() { sendText("Hello World\n"); } //----------------------------------------------------------------------------- int main() { while(true) { helloWorld(); wait(2.0); } } //-----------------------------------------------------------------------------