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 led1(LED1); 00004 00005 void led1_thread(void const *argument) 00006 { 00007 while(true){ 00008 led1=!led1; 00009 Thread::wait(1000); 00010 } 00011 } 00012 00013 int main(){ 00014 Thread thread(led1_thread); 00015 while(true){ 00016 printf("main thread \r\n"); 00017 Thread::wait(2000); 00018 } 00019 } 00020
Generated on Wed Jul 13 2022 03:53:40 by
1.7.2