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
Diff: Man_Barre.cpp
- Revision:
- 0:0e564d96cb09
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Man_Barre.cpp Thu Nov 05 15:07:26 2015 +0000 @@ -0,0 +1,43 @@ + +#include "Man_Barre.h" + + + + + +void Init_GPIO ( void ) + +{ + + + + + bled1=0; + bled2=0; + bled3=0; + + + } + + + +void Barre ( void ) +{ +switch ( compteur ){ + case 0: bled1=1; break; //display 0 + case 1: bled2=1; break; //display 1 + case 2: bled3=1; break; + + +} + +compteur=compteur+1; + +if (compteur>2) +{ +compteur=0; + +} + +} +