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