Pour Marc la mignonne

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed

Committer:
Alex_mln
Date:
Thu May 31 06:11:25 2018 +0000
Revision:
0:fcce18d01987
Tiens pd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Alex_mln 0:fcce18d01987 1 #include "fonctions.h"
Alex_mln 0:fcce18d01987 2
Alex_mln 0:fcce18d01987 3 DigitalOut ledjaune(LED1);
Alex_mln 0:fcce18d01987 4 DigitalOut ledrouge(LED2);
Alex_mln 0:fcce18d01987 5
Alex_mln 0:fcce18d01987 6 void erreur(){
Alex_mln 0:fcce18d01987 7
Alex_mln 0:fcce18d01987 8 while(1){
Alex_mln 0:fcce18d01987 9
Alex_mln 0:fcce18d01987 10 ledjaune=1;
Alex_mln 0:fcce18d01987 11 ledrouge=0;
Alex_mln 0:fcce18d01987 12 wait(0.2);
Alex_mln 0:fcce18d01987 13 ledrouge=1;
Alex_mln 0:fcce18d01987 14 wait(0.2);
Alex_mln 0:fcce18d01987 15
Alex_mln 0:fcce18d01987 16 ledjaune=0;
Alex_mln 0:fcce18d01987 17 wait(0.1);
Alex_mln 0:fcce18d01987 18 ledrouge=0;
Alex_mln 0:fcce18d01987 19 wait(0.1);
Alex_mln 0:fcce18d01987 20 ledrouge=1;
Alex_mln 0:fcce18d01987 21 wait(0.1);
Alex_mln 0:fcce18d01987 22 ledjaune=1;
Alex_mln 0:fcce18d01987 23 wait(0.2);
Alex_mln 0:fcce18d01987 24 ledrouge=0;
Alex_mln 0:fcce18d01987 25 ledjaune=0;
Alex_mln 0:fcce18d01987 26
Alex_mln 0:fcce18d01987 27 }}