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 00005 -- HelloWorld example 00006 00007 Printing hello world and toggling LED1 00008 00009 ------------------------------------------------------------------------------*/ 00010 00011 DigitalOut led(LED1); 00012 00013 int main() 00014 { 00015 int i = 1; 00016 00017 printf("Hello World !\n"); 00018 00019 while(1) { 00020 wait(1); // 1 second 00021 led = !led; // Toggle LED 00022 printf("This program runs since %d seconds.\n", i++); 00023 } 00024 }
Generated on Mon Jul 18 2022 01:03:56 by
1.7.2