Quentin LAM
/
ex11
Exo
main.cpp
- Committer:
- Quent1nl
- Date:
- 2018-05-29
- Revision:
- 0:e674d0c66c6a
File content as of revision 0:e674d0c66c6a:
#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; } } } }