Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
TraceMatrix/Trace.h@22:5b2a7d7c73fa, 2019-05-09 (annotated)
- Committer:
- Luca1996
- Date:
- Thu May 09 10:32:58 2019 +0000
- Revision:
- 22:5b2a7d7c73fa
- Child:
- 23:1d4562f7b639
ca marche pas >.<
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Luca1996 | 22:5b2a7d7c73fa | 1 | #include "mbed.h" |
| Luca1996 | 22:5b2a7d7c73fa | 2 | #include "LCD_DISCO_F429ZI.h" |
| Luca1996 | 22:5b2a7d7c73fa | 3 | |
| Luca1996 | 22:5b2a7d7c73fa | 4 | //debut de la zone de définition |
| Luca1996 | 22:5b2a7d7c73fa | 5 | #ifndef CHANGEME_H_ |
| Luca1996 | 22:5b2a7d7c73fa | 6 | #define CHANGEME_H_ |
| Luca1996 | 22:5b2a7d7c73fa | 7 | |
| Luca1996 | 22:5b2a7d7c73fa | 8 | #define TailleMatrice 16 /*va peut être changer*/ |
| Luca1996 | 22:5b2a7d7c73fa | 9 | |
| Luca1996 | 22:5b2a7d7c73fa | 10 | struct matrice { |
| Luca1996 | 22:5b2a7d7c73fa | 11 | int tailleX; |
| Luca1996 | 22:5b2a7d7c73fa | 12 | int tailleY; |
| Luca1996 | 22:5b2a7d7c73fa | 13 | char tableau[TailleMatrice][TailleMatrice]; |
| Luca1996 | 22:5b2a7d7c73fa | 14 | }; |
| Luca1996 | 22:5b2a7d7c73fa | 15 | |
| Luca1996 | 22:5b2a7d7c73fa | 16 | #endif |
| Luca1996 | 22:5b2a7d7c73fa | 17 | //fin de la zone de définition |
| Luca1996 | 22:5b2a7d7c73fa | 18 | |
| Luca1996 | 22:5b2a7d7c73fa | 19 | void DisplayMatrix(int,int,matrice*,int,long long int); //Cett foction prend en argument une position initialle, une matrce (représentée par un nombre binaire de coté² bits) ,une taille de pixel et une couleur et trace ce qui est repésenté par la matrice. |
| Luca1996 | 22:5b2a7d7c73fa | 20 | void DisplayMatrixClean(int,int,matrice*,int,long long int,long long int); //Comme la précédente mais nétois le fond de l'image. |
| Luca1996 | 22:5b2a7d7c73fa | 21 | |
| Luca1996 | 22:5b2a7d7c73fa | 22 | void DM_test(); |
| Luca1996 | 22:5b2a7d7c73fa | 23 | |
| Luca1996 | 22:5b2a7d7c73fa | 24 | |
| Luca1996 | 22:5b2a7d7c73fa | 25 | //Elements de la banque de symboles |
| Luca1996 | 22:5b2a7d7c73fa | 26 | |
| Luca1996 | 22:5b2a7d7c73fa | 27 | matrice *BS_smile(); //un petit dessin pour des tests |
| Luca1996 | 22:5b2a7d7c73fa | 28 | matrice *BS_graphe(); //une aide visuelle |
| Luca1996 | 22:5b2a7d7c73fa | 29 | matrice *BS_Train(); |
| Luca1996 | 22:5b2a7d7c73fa | 30 | |
| Luca1996 | 22:5b2a7d7c73fa | 31 | //liste de chiffres arabes |
| Luca1996 | 22:5b2a7d7c73fa | 32 | matrice *BS_0(); |
| Luca1996 | 22:5b2a7d7c73fa | 33 | matrice *BS_1(); |
| Luca1996 | 22:5b2a7d7c73fa | 34 | matrice *BS_2(); |
| Luca1996 | 22:5b2a7d7c73fa | 35 | matrice *BS_3(); |
| Luca1996 | 22:5b2a7d7c73fa | 36 | matrice *BS_4(); |
| Luca1996 | 22:5b2a7d7c73fa | 37 | matrice *BS_5(); |
| Luca1996 | 22:5b2a7d7c73fa | 38 | matrice *BS_6(); |
| Luca1996 | 22:5b2a7d7c73fa | 39 | matrice *BS_7(); |
| Luca1996 | 22:5b2a7d7c73fa | 40 | matrice *BS_8(); |
| Luca1996 | 22:5b2a7d7c73fa | 41 | matrice *BS_9(); |
| Luca1996 | 22:5b2a7d7c73fa | 42 | matrice *BS_na(); |
| Luca1996 | 22:5b2a7d7c73fa | 43 | void BS_displayChiffre(int,int,int,int,long long int); //permet d'afficher un entier compris entre 0 et 9 |
| Luca1996 | 22:5b2a7d7c73fa | 44 | void BS_displayChiffreClean(int,int,int,int,long long int,long long int); //Pareil mais nétois le fond |
| Luca1996 | 22:5b2a7d7c73fa | 45 | void BS_displayChiffre100Clean(int,int,int,int,long long int,long long int); //Pareil mais avec des chiffren entres 0 et 999 |
| Luca1996 | 22:5b2a7d7c73fa | 46 | |
| Luca1996 | 22:5b2a7d7c73fa | 47 | //Symboles pour l'horloge |
| Luca1996 | 22:5b2a7d7c73fa | 48 | |
| Luca1996 | 22:5b2a7d7c73fa | 49 | matrice *BS_dotdot(); //Les deux points entre les heures et les minutes |
| Luca1996 | 22:5b2a7d7c73fa | 50 | |
| Luca1996 | 22:5b2a7d7c73fa | 51 | //Elements |
| Luca1996 | 22:5b2a7d7c73fa | 52 | |
| Luca1996 | 22:5b2a7d7c73fa | 53 | matrice *BS_H(); |
