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
00001 #include "mbed.h" 00002 00003 //------------------------------------ 00004 // Hyperterminal configuration 00005 // 9600 bauds, 8-bit data, no parity 00006 //------------------------------------ 00007 00008 Serial pc(SERIAL_TX, SERIAL_RX); 00009 00010 DigitalOut myled(LED1); 00011 00012 int main() { 00013 int i = 1; 00014 pc.printf("Hello World !\r\n"); 00015 while(1) { 00016 wait(1); 00017 pc.printf("This has been running for %d seconds.\r\n", i++); 00018 myled = !myled; 00019 } 00020 } 00021
Generated on Mon Jul 25 2022 16:24:30 by
1.7.2