Quentin LAM
/
ex11
Exo
Diff: main.cpp
- Revision:
- 0:e674d0c66c6a
diff -r 000000000000 -r e674d0c66c6a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue May 29 14:12:43 2018 +0000 @@ -0,0 +1,34 @@ +#include "Nboard.h" +#include "IHM.h" +IHM ihm; + + +int main() +{ + UINT16 n =3; + short f =1; + while(1) { + if(bou1==0){ + while(bou1==1); + Bus8Leds=n; + + if(f<8) { + n=n<<1; + wait(0.25); + f++; + } + else if (f>=8) { + wait(0.25); + n=n>>7; + f=1; + } + } + + + + + } + + + +}