cc

Dependencies:   mbed TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Exercice_1.cpp Source File

Exercice_1.cpp

00001 /*
00002 #include "mbed.h" 
00003 BusOut myleds(LED4, LED3, LED2, LED1); 
00004 int main() { 
00005   char x; 
00006   while(1) {  
00007     x=1;   
00008     myleds.write(x);  
00009     wait(0.2); 
00010     x=2;     
00011     myleds.write(x);  
00012     wait(0.2);
00013     x=4;   
00014     myleds.write(x);  
00015     wait(0.2); 
00016     x=8;     
00017     myleds.write(x);  
00018     wait(0.2);
00019     x=4;     
00020     myleds.write(x);  
00021     wait(0.2); 
00022     x=2;   
00023     myleds.write(x);  
00024     wait(0.2);
00025   } 
00026 }  
00027 */