![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Exo
Diff: main.cpp
- Revision:
- 0:64f23204b33e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue May 29 14:12:20 2018 +0000 @@ -0,0 +1,26 @@ +#include "Nboard.h" +#include "IHM.h" + +IHM ihm; + +int main() +{ + short cpt1 = 0; + short cpt2 = 0; + while(1) { + if (bou1 == 0) { + while(bou1==0){} + cpt1++; + ihm.LCD_gotoxy(0,0); + ihm.LCD_printf(" CPT1 = %hd",cpt1); + + } + if (bou2 == 0) { + while(bou2==0){} + cpt2++; + ihm.LCD_gotoxy(1,0); + ihm.LCD_printf(" CPT2 = %hd",cpt2); + + } + } +}