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.
Dependencies: mbed-rtos-old mbed
main.cpp
00001 #include "mbed.h" 00002 #include "rtos.h" 00003 00004 DigitalOut myled(LED1); 00005 bool c=false; 00006 void led1_thread(void const *argument) { 00007 00008 while (!c) { 00009 myled = !myled; 00010 Thread::wait(200); 00011 } 00012 myled=1; 00013 } 00014 int main() { 00015 00016 Thread th1(led1_thread); 00017 while(1) { 00018 unsigned long n=100000000; 00019 float x=0; 00020 while(x*x <n) 00021 x = x + 0.01 ; 00022 c=true; 00023 } 00024 00025 }
Generated on Sun Jul 24 2022 17:22:33 by
1.7.2