sifax debug

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Man_Barre.cpp Source File

Man_Barre.cpp

00001 
00002 #include "Man_Barre.h"
00003 
00004 
00005 
00006 
00007 
00008 void Init_GPIO ( void )
00009 
00010 {
00011     
00012 
00013 
00014 
00015     bled1=0;
00016     bled2=0;
00017     bled3=0;
00018     
00019     
00020     }
00021     
00022     
00023 
00024 void Barre ( void )
00025 {
00026 switch ( compteur ){
00027         case 0:  bled1=1; break;       //display 0
00028         case 1:  bled2=1; break;       //display 1
00029         case 2:  bled3=1; break;
00030     
00031 
00032 }
00033 
00034 compteur=compteur+1;
00035 
00036 if (compteur>2)
00037 {
00038 compteur=0; 
00039 
00040 }
00041 
00042 }
00043