
ce program est un test non fini
Dependencies: mbed BSP_DISCO_F746NG
prog_util/header.h@2:3e54ffabcc47, 2020-11-18 (annotated)
- Committer:
- guillaume_m
- Date:
- Wed Nov 18 08:07:27 2020 +0000
- Revision:
- 2:3e54ffabcc47
azertyuiop
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
guillaume_m | 2:3e54ffabcc47 | 1 | |
guillaume_m | 2:3e54ffabcc47 | 2 | #include <stdio.h> |
guillaume_m | 2:3e54ffabcc47 | 3 | #include <stdlib.h> |
guillaume_m | 2:3e54ffabcc47 | 4 | #include <stm32746g_discovery_ts.h> |
guillaume_m | 2:3e54ffabcc47 | 5 | #include <stm32746g_discovery_lcd.h> |
guillaume_m | 2:3e54ffabcc47 | 6 | |
guillaume_m | 2:3e54ffabcc47 | 7 | |
guillaume_m | 2:3e54ffabcc47 | 8 | #define LONGUEUR 238 //sur la grille des états |
guillaume_m | 2:3e54ffabcc47 | 9 | #define HAUTEUR 134 |
guillaume_m | 2:3e54ffabcc47 | 10 | #define TEMPS_TOUR 100 |
guillaume_m | 2:3e54ffabcc47 | 11 | |
guillaume_m | 2:3e54ffabcc47 | 12 | typedef char CASE; |
guillaume_m | 2:3e54ffabcc47 | 13 | typedef CASE GRILLE[LONGUEUR+1][HAUTEUR+1]; |
guillaume_m | 2:3e54ffabcc47 | 14 | |
guillaume_m | 2:3e54ffabcc47 | 15 | // limite du bouton "démarrer" |
guillaume_m | 2:3e54ffabcc47 | 16 | #define Gauche_bouton_demarrer 400 |
guillaume_m | 2:3e54ffabcc47 | 17 | #define Bas_bouton_demarrer 60 |
guillaume_m | 2:3e54ffabcc47 | 18 | #define couleur_stop LCD_COLOR_GREEN |
guillaume_m | 2:3e54ffabcc47 | 19 | #define couleur_demarrer LCD_COLOR_RED |
guillaume_m | 2:3e54ffabcc47 | 20 | #define Droit_bouton_continuer 79 |
guillaume_m | 2:3e54ffabcc47 | 21 | |
guillaume_m | 2:3e54ffabcc47 | 22 | // règles |
guillaume_m | 2:3e54ffabcc47 | 23 | #define CVA_VIVANT 3//les test sont fait en intervalle ouvert (=> =<) |
guillaume_m | 2:3e54ffabcc47 | 24 | #define CVA_MORT 2 |
guillaume_m | 2:3e54ffabcc47 | 25 | |
guillaume_m | 2:3e54ffabcc47 | 26 | |
guillaume_m | 2:3e54ffabcc47 | 27 | #define couleurvivante LCD_COLOR_WHITE |
guillaume_m | 2:3e54ffabcc47 | 28 | #define couleurmorte LCD_COLOR_BLACK |
guillaume_m | 2:3e54ffabcc47 | 29 | //Fonctions du JDLV |
guillaume_m | 2:3e54ffabcc47 | 30 | |
guillaume_m | 2:3e54ffabcc47 | 31 | void Tabsomme(GRILLE G, GRILLE Gsomme); |
guillaume_m | 2:3e54ffabcc47 | 32 | |
guillaume_m | 2:3e54ffabcc47 | 33 | int SommeADJcorps(GRILLE G, int i, int h); |
guillaume_m | 2:3e54ffabcc47 | 34 | |
guillaume_m | 2:3e54ffabcc47 | 35 | int SommeADJcoteslat(GRILLE G,int i, int h); |
guillaume_m | 2:3e54ffabcc47 | 36 | |
guillaume_m | 2:3e54ffabcc47 | 37 | int SommeADJcoins(GRILLE G, int i, int h); |
guillaume_m | 2:3e54ffabcc47 | 38 | |
guillaume_m | 2:3e54ffabcc47 | 39 | int SommeADJcoteslon(GRILLE G,int i, int h); |
guillaume_m | 2:3e54ffabcc47 | 40 | |
guillaume_m | 2:3e54ffabcc47 | 41 | void Changementetat(GRILLE G, GRILLE Gsomme); |
guillaume_m | 2:3e54ffabcc47 | 42 | |
guillaume_m | 2:3e54ffabcc47 | 43 | void Affichagepxl2(GRILLE G); |
guillaume_m | 2:3e54ffabcc47 | 44 | |
guillaume_m | 2:3e54ffabcc47 | 45 | void Affichagepxl2_debut(GRILLE G); |
guillaume_m | 2:3e54ffabcc47 | 46 | |
guillaume_m | 2:3e54ffabcc47 | 47 | void partie(GRILLE G,GRILLE Gsomme); |
guillaume_m | 2:3e54ffabcc47 | 48 | |
guillaume_m | 2:3e54ffabcc47 | 49 | int fin_de_partie(GRILLE G,GRILLE Gsomme); |
guillaume_m | 2:3e54ffabcc47 | 50 | |
guillaume_m | 2:3e54ffabcc47 | 51 | void init_cellules(GRILLE G); |
guillaume_m | 2:3e54ffabcc47 | 52 | |
guillaume_m | 2:3e54ffabcc47 | 53 | |
guillaume_m | 2:3e54ffabcc47 | 54 | |
guillaume_m | 2:3e54ffabcc47 | 55 | |
guillaume_m | 2:3e54ffabcc47 | 56 | |
guillaume_m | 2:3e54ffabcc47 | 57 | |
guillaume_m | 2:3e54ffabcc47 | 58 |