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 // Déclarer les variables associées aux LEDs 00004 DigitalOut myled1(LED1); 00005 DigitalOut myled2(LED2); 00006 DigitalOut myled3(LED3); 00007 DigitalOut myled4(LED4); 00008 00009 // Programme principal 00010 int main() 00011 { 00012 while (1) 00013 { 00014 // LED 1 00015 myled1 = 1; 00016 wait(0.05); 00017 myled1 = 0; 00018 wait(0.05); 00019 // LED 2 00020 myled2 = 1; 00021 wait(0.1); 00022 myled2 = 0; 00023 wait(0.1); 00024 // LED 3 00025 myled3 = 1; 00026 wait(0.2); 00027 myled3 = 0; 00028 wait(0.2); 00029 // LED 4 00030 myled4 = 1; 00031 wait(0.4); 00032 myled4 = 0; 00033 wait(0.4); 00034 } 00035 }
Generated on Fri Aug 12 2022 18:39:32 by
1.7.2