![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Exo
main.cpp
- Committer:
- Quent1nl
- Date:
- 2018-05-29
- Revision:
- 0:4bd9d2bb5e89
File content as of revision 0:4bd9d2bb5e89:
#include "Nboard.h" void clg_leds(float n){ for (int i=0; i<=100; i++) { Bus8Leds=0xAA; wait(n); Bus8Leds=0x55; wait(n); } } void afficher_time(){ float time=timer.read(); ihm.LCD_gotoxy(0,0); ihm.LCD_printf("Time =%f ",time); } int main() { ihm.LCD_clear(); float time; while(1) { timer.start(); time=0; while(time<3) { afficher_time(); if(bp==0) { clg_leds(0.4); } time=timer.read(); } clg_leds(0.1); } }