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.
main.cpp
- Committer:
- brett_slab
- Date:
- 2019-10-30
- Revision:
- 0:a97acec6e904
- Child:
- 1:792cb2614ee9
- Child:
- 3:efea9a991d8d
File content as of revision 0:a97acec6e904:
#include "mbed.h" #define PC_BAUD 115200 Serial pc(PA_10, PA_9); //TX, RX DigitalOut myled(LED1); int main() { int i = 1; pc.printf("Hello World !\n"); pc.baud(PC_BAUD); while(1) { wait(1); pc.printf("This program runs since %d seconds.\n", i++); myled = !myled; } }