Exo

Dependencies:   IHM_V2 mbed

Committer:
Quent1nl
Date:
Tue May 29 14:14:16 2018 +0000
Revision:
0:0237586b9926
EX20

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Quent1nl 0:0237586b9926 1 #include "Nboard.h"
Quent1nl 0:0237586b9926 2
Quent1nl 0:0237586b9926 3 void allumer_succ();
Quent1nl 0:0237586b9926 4 void allumer_si_bp();
Quent1nl 0:0237586b9926 5 int main()
Quent1nl 0:0237586b9926 6 {
Quent1nl 0:0237586b9926 7 allumer_succ();
Quent1nl 0:0237586b9926 8 while(1) {
Quent1nl 0:0237586b9926 9 allumer_si_bp();
Quent1nl 0:0237586b9926 10 }
Quent1nl 0:0237586b9926 11 }
Quent1nl 0:0237586b9926 12
Quent1nl 0:0237586b9926 13
Quent1nl 0:0237586b9926 14 void allumer_succ()
Quent1nl 0:0237586b9926 15 {
Quent1nl 0:0237586b9926 16 led1=1;
Quent1nl 0:0237586b9926 17 wait(1);
Quent1nl 0:0237586b9926 18 led1=!led1;
Quent1nl 0:0237586b9926 19 led7=1;
Quent1nl 0:0237586b9926 20 wait(1);
Quent1nl 0:0237586b9926 21 led7=!led7;
Quent1nl 0:0237586b9926 22 }
Quent1nl 0:0237586b9926 23 void allumer_si_bp()
Quent1nl 0:0237586b9926 24 {
Quent1nl 0:0237586b9926 25 if(bp==0) {
Quent1nl 0:0237586b9926 26 while(bp==0);
Quent1nl 0:0237586b9926 27 Bus8Leds=0xFF;
Quent1nl 0:0237586b9926 28 }
Quent1nl 0:0237586b9926 29 }