![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Exo
main.cpp@0:17e743b318d7, 2018-05-29 (annotated)
- Committer:
- Quent1nl
- Date:
- Tue May 29 14:17:23 2018 +0000
- Revision:
- 0:17e743b318d7
EX30
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Quent1nl | 0:17e743b318d7 | 1 | #include "Nboard.h" |
Quent1nl | 0:17e743b318d7 | 2 | IHM ihm; |
Quent1nl | 0:17e743b318d7 | 3 | Timer timer; |
Quent1nl | 0:17e743b318d7 | 4 | void fct_a_mesurer(); |
Quent1nl | 0:17e743b318d7 | 5 | int main() |
Quent1nl | 0:17e743b318d7 | 6 | { |
Quent1nl | 0:17e743b318d7 | 7 | float time=0.0 ; |
Quent1nl | 0:17e743b318d7 | 8 | timer.start(); |
Quent1nl | 0:17e743b318d7 | 9 | fct_a_mesurer(); |
Quent1nl | 0:17e743b318d7 | 10 | timer.stop(); |
Quent1nl | 0:17e743b318d7 | 11 | time=timer.read(); |
Quent1nl | 0:17e743b318d7 | 12 | ihm.LCD_gotoxy(1,0); |
Quent1nl | 0:17e743b318d7 | 13 | ihm.LCD_printf("%f ",time); |
Quent1nl | 0:17e743b318d7 | 14 | |
Quent1nl | 0:17e743b318d7 | 15 | } |
Quent1nl | 0:17e743b318d7 | 16 | |
Quent1nl | 0:17e743b318d7 | 17 | |
Quent1nl | 0:17e743b318d7 | 18 | |
Quent1nl | 0:17e743b318d7 | 19 | void fct_a_mesurer() { |
Quent1nl | 0:17e743b318d7 | 20 | ihm.LCD_clear(); |
Quent1nl | 0:17e743b318d7 | 21 | ihm.LCD_gotoxy(0,0); |
Quent1nl | 0:17e743b318d7 | 22 | ihm.LCD_printf("I'm in "); |
Quent1nl | 0:17e743b318d7 | 23 | } |