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 DigitalOut myled(LED_GREEN); 00004 Serial pc(USBTX, USBRX); 00005 00006 int main() 00007 { 00008 int i = 0; 00009 pc.baud(115200); 00010 pc.printf("Hello World!\n"); 00011 00012 while (true) { 00013 wait(0.5f); // wait a small period of time 00014 pc.printf("%d \n", i); // print the value of variable i 00015 i++; // increment the variable 00016 myled = !myled; // toggle a led 00017 } 00018 }
Generated on Wed Aug 3 2022 14:39:43 by
1.7.2