Programme qui marche 100%

Dependencies:   mbed BSP_DISCO_F746NG

Revision:
3:54a96adea9cd
Parent:
2:3e54ffabcc47
--- a/prog_util/header.h	Wed Nov 18 08:07:27 2020 +0000
+++ b/prog_util/header.h	Wed Nov 18 10:51:15 2020 +0000
@@ -1,58 +1,59 @@
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stm32746g_discovery_ts.h>
-#include <stm32746g_discovery_lcd.h>
-
-
-#define LONGUEUR 238  //sur la grille des états
-#define HAUTEUR 134 
-#define TEMPS_TOUR 100
- 
-typedef char CASE;
-typedef CASE GRILLE[LONGUEUR+1][HAUTEUR+1];
-
-// limite du bouton "démarrer"
-#define Gauche_bouton_demarrer 400
-#define Bas_bouton_demarrer 60
-#define couleur_stop LCD_COLOR_GREEN
-#define couleur_demarrer LCD_COLOR_RED
-#define Droit_bouton_continuer 79
-
-// règles
-#define CVA_VIVANT 3//les test sont fait en intervalle ouvert (=> =<)
-#define CVA_MORT 2
-
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stm32746g_discovery_ts.h>
+#include <stm32746g_discovery_lcd.h>
+
+
+#define LONGUEUR 238  //sur la grille des états
+#define HAUTEUR 134 
+#define TEMPS_TOUR 200
+ 
+typedef char CASE;
+typedef CASE GRILLE[LONGUEUR+1][HAUTEUR+1];
+
+// limite du bouton "démarrer"
+#define Gauche_bouton_demarrer 350
+#define Bas_bouton_demarrer 30
+#define couleur_stop LCD_COLOR_BLACK
+#define couleur_demarrer LCD_COLOR_BLACK
+#define Droit_bouton_continuer 129
+
+// règles
+#define CVA_VIVANT 3//les test sont fait en intervalle ouvert (=> =<)
+#define CVA_MORT 2
+
+
+#define couleurvivante LCD_COLOR_WHITE
+#define couleurmorte LCD_COLOR_BLACK 
+//Fonctions du JDLV
+
+void Tabsomme(GRILLE G, GRILLE Gsomme);
+
+int SommeADJcorps(GRILLE G, int i, int h);
+ 
+int SommeADJcoteslat(GRILLE G,int i, int h);
+
+int SommeADJcoins(GRILLE G, int i, int h);
+ 
+int SommeADJcoteslon(GRILLE G,int i, int h);
+ 
+void Changementetat(GRILLE G, GRILLE Gsomme);
+ 
+void Affichagepxl2(GRILLE G);
+
+void Affichagepxl2_debut(GRILLE G);
+
+void partie(GRILLE G,GRILLE Gsomme);
+
+int fin_de_partie(GRILLE G,GRILLE Gsomme);
+
+void init_cellules(GRILLE G);
+
+
+
+
+
+
+
 
-#define couleurvivante LCD_COLOR_WHITE
-#define couleurmorte LCD_COLOR_BLACK 
-//Fonctions du JDLV
-
-void Tabsomme(GRILLE G, GRILLE Gsomme);
-
-int SommeADJcorps(GRILLE G, int i, int h);
- 
-int SommeADJcoteslat(GRILLE G,int i, int h);
-
-int SommeADJcoins(GRILLE G, int i, int h);
- 
-int SommeADJcoteslon(GRILLE G,int i, int h);
- 
-void Changementetat(GRILLE G, GRILLE Gsomme);
- 
-void Affichagepxl2(GRILLE G);
-
-void Affichagepxl2_debut(GRILLE G);
-
-void partie(GRILLE G,GRILLE Gsomme);
-
-int fin_de_partie(GRILLE G,GRILLE Gsomme);
-
-void init_cellules(GRILLE G);
-
-
-
-
-
-
-