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.
Revision 3:efea9a991d8d, committed 2019-10-30
- Comitter:
- brett_slab
- Date:
- Wed Oct 30 22:05:24 2019 +0000
- Parent:
- 0:a97acec6e904
- Commit message:
- Fixed Timing;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 30 07:18:54 2019 +0000 +++ b/main.cpp Wed Oct 30 22:05:24 2019 +0000 @@ -2,7 +2,7 @@ #define PC_BAUD 115200 -Serial pc(PA_10, PA_9); //TX, RX +Serial pc(SERIAL_TX, SERIAL_RX); //TX, RX DigitalOut myled(LED1); @@ -13,7 +13,7 @@ pc.baud(PC_BAUD); while(1) { wait(1); - pc.printf("This program runs since %d seconds.\n", i++); + pc.printf("%d\n", i++); myled = !myled; } }