V1 des afficheur 8x8 RGB
Flipper_Affichage.cpp@0:035a2e99ccdc, 2021-12-16 (annotated)
- Committer:
- bastien_07
- Date:
- Thu Dec 16 11:51:00 2021 +0000
- Revision:
- 0:035a2e99ccdc
Afficheur Flipper v1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bastien_07 | 0:035a2e99ccdc | 1 | #include "mbed.h" |
bastien_07 | 0:035a2e99ccdc | 2 | #include "Flipper_Affichage.h" |
bastien_07 | 0:035a2e99ccdc | 3 | |
bastien_07 | 0:035a2e99ccdc | 4 | |
bastien_07 | 0:035a2e99ccdc | 5 | //GLOBAL VARIABLE |
bastien_07 | 0:035a2e99ccdc | 6 | PixelArray px(WS2812_BUF); |
bastien_07 | 0:035a2e99ccdc | 7 | // See the program page for information on the timing numbers |
bastien_07 | 0:035a2e99ccdc | 8 | // The given numbers are for the K64F |
bastien_07 | 0:035a2e99ccdc | 9 | WS2812 ws(D9, WS2812_BUF, 0, 5, 5, 0); |
bastien_07 | 0:035a2e99ccdc | 10 | int colorbuffer[NUM_COLORS]; |
bastien_07 | 0:035a2e99ccdc | 11 | int NbrAfficheur=0; |
bastien_07 | 0:035a2e99ccdc | 12 | |
bastien_07 | 0:035a2e99ccdc | 13 | |
bastien_07 | 0:035a2e99ccdc | 14 | //Fonctions |
bastien_07 | 0:035a2e99ccdc | 15 | void EgalTab(int newTab[][4],int oldTab[][4]) |
bastien_07 | 0:035a2e99ccdc | 16 | { |
bastien_07 | 0:035a2e99ccdc | 17 | for(int i=0;i<8;i++) |
bastien_07 | 0:035a2e99ccdc | 18 | { |
bastien_07 | 0:035a2e99ccdc | 19 | for(int j=0;j<4;j++) |
bastien_07 | 0:035a2e99ccdc | 20 | { |
bastien_07 | 0:035a2e99ccdc | 21 | newTab[i][j]=oldTab[i][j]; |
bastien_07 | 0:035a2e99ccdc | 22 | } |
bastien_07 | 0:035a2e99ccdc | 23 | } |
bastien_07 | 0:035a2e99ccdc | 24 | } |
bastien_07 | 0:035a2e99ccdc | 25 | |
bastien_07 | 0:035a2e99ccdc | 26 | |
bastien_07 | 0:035a2e99ccdc | 27 | void InitDisplay(char Choix1,char Choix2,int color1,int color2,int bande) |
bastien_07 | 0:035a2e99ccdc | 28 | { |
bastien_07 | 0:035a2e99ccdc | 29 | int colorbuf[64]; |
bastien_07 | 0:035a2e99ccdc | 30 | ws.useII(WS2812::PER_PIXEL); // use per-pixel intensity scaling |
bastien_07 | 0:035a2e99ccdc | 31 | int iTab1[8][4]; |
bastien_07 | 0:035a2e99ccdc | 32 | int iTab2[8][4]; |
bastien_07 | 0:035a2e99ccdc | 33 | //int colorbuf2[64]={0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000}; |
bastien_07 | 0:035a2e99ccdc | 34 | |
bastien_07 | 0:035a2e99ccdc | 35 | ///////////////////////////FIRST LETTERS |
bastien_07 | 0:035a2e99ccdc | 36 | //A |
bastien_07 | 0:035a2e99ccdc | 37 | int iA1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 38 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 39 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 40 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 41 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 42 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 43 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 44 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 45 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 46 | }; |
bastien_07 | 0:035a2e99ccdc | 47 | |
bastien_07 | 0:035a2e99ccdc | 48 | //B |
bastien_07 | 0:035a2e99ccdc | 49 | int iB1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 50 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 51 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 52 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 53 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 54 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 55 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 56 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 57 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 58 | }; |
bastien_07 | 0:035a2e99ccdc | 59 | |
bastien_07 | 0:035a2e99ccdc | 60 | //C |
bastien_07 | 0:035a2e99ccdc | 61 | int iC1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 62 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 63 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 64 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 65 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 66 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 67 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 68 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 69 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 70 | }; |
bastien_07 | 0:035a2e99ccdc | 71 | |
bastien_07 | 0:035a2e99ccdc | 72 | //D |
bastien_07 | 0:035a2e99ccdc | 73 | int iD1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 74 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 75 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 76 | {0,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 77 | {0,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 78 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 79 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 80 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 81 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 82 | }; |
bastien_07 | 0:035a2e99ccdc | 83 | |
bastien_07 | 0:035a2e99ccdc | 84 | //E |
bastien_07 | 0:035a2e99ccdc | 85 | int iE1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 86 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 87 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 88 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 89 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 90 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 91 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 92 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 93 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 94 | }; |
bastien_07 | 0:035a2e99ccdc | 95 | |
bastien_07 | 0:035a2e99ccdc | 96 | //F |
bastien_07 | 0:035a2e99ccdc | 97 | int iF1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 98 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 99 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 100 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 101 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 102 | {color1,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 103 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 104 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 105 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 106 | }; |
bastien_07 | 0:035a2e99ccdc | 107 | |
bastien_07 | 0:035a2e99ccdc | 108 | //G |
bastien_07 | 0:035a2e99ccdc | 109 | int iG1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 110 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 111 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 112 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 113 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 114 | {color1,0,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 115 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 116 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 117 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 118 | }; |
bastien_07 | 0:035a2e99ccdc | 119 | |
bastien_07 | 0:035a2e99ccdc | 120 | //H |
bastien_07 | 0:035a2e99ccdc | 121 | int iH1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 122 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 123 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 124 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 125 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 126 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 127 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 128 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 129 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 130 | }; |
bastien_07 | 0:035a2e99ccdc | 131 | |
bastien_07 | 0:035a2e99ccdc | 132 | //I |
bastien_07 | 0:035a2e99ccdc | 133 | int iI1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 134 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 135 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 136 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 137 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 138 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 139 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 140 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 141 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 142 | }; |
bastien_07 | 0:035a2e99ccdc | 143 | |
bastien_07 | 0:035a2e99ccdc | 144 | //J |
bastien_07 | 0:035a2e99ccdc | 145 | int iJ1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 146 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 147 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 148 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 149 | {0,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 150 | {0,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 151 | {0,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 152 | {color1,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 153 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 154 | }; |
bastien_07 | 0:035a2e99ccdc | 155 | |
bastien_07 | 0:035a2e99ccdc | 156 | //K |
bastien_07 | 0:035a2e99ccdc | 157 | int iK1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 158 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 159 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 160 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 161 | {color1,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 162 | {color1,color1,0,0}, |
bastien_07 | 0:035a2e99ccdc | 163 | {color1,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 164 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 165 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 166 | }; |
bastien_07 | 0:035a2e99ccdc | 167 | |
bastien_07 | 0:035a2e99ccdc | 168 | //L |
bastien_07 | 0:035a2e99ccdc | 169 | int iL1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 170 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 171 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 172 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 173 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 174 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 175 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 176 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 177 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 178 | }; |
bastien_07 | 0:035a2e99ccdc | 179 | |
bastien_07 | 0:035a2e99ccdc | 180 | //M |
bastien_07 | 0:035a2e99ccdc | 181 | int iM1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 182 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 183 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 184 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 185 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 186 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 187 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 188 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 189 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 190 | }; |
bastien_07 | 0:035a2e99ccdc | 191 | |
bastien_07 | 0:035a2e99ccdc | 192 | //N |
bastien_07 | 0:035a2e99ccdc | 193 | int iN1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 194 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 195 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 196 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 197 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 198 | {color1,color1,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 199 | {color1,0,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 200 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 201 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 202 | }; |
bastien_07 | 0:035a2e99ccdc | 203 | |
bastien_07 | 0:035a2e99ccdc | 204 | //O |
bastien_07 | 0:035a2e99ccdc | 205 | int iO1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 206 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 207 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 208 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 209 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 210 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 211 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 212 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 213 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 214 | }; |
bastien_07 | 0:035a2e99ccdc | 215 | |
bastien_07 | 0:035a2e99ccdc | 216 | //P |
bastien_07 | 0:035a2e99ccdc | 217 | int iP1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 218 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 219 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 220 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 221 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 222 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 223 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 224 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 225 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 226 | }; |
bastien_07 | 0:035a2e99ccdc | 227 | |
bastien_07 | 0:035a2e99ccdc | 228 | //Q |
bastien_07 | 0:035a2e99ccdc | 229 | int iQ1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 230 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 231 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 232 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 233 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 234 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 235 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 236 | {0,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 237 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 238 | }; |
bastien_07 | 0:035a2e99ccdc | 239 | |
bastien_07 | 0:035a2e99ccdc | 240 | //R |
bastien_07 | 0:035a2e99ccdc | 241 | int iR1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 242 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 243 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 244 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 245 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 246 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 247 | {color1,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 248 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 249 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 250 | }; |
bastien_07 | 0:035a2e99ccdc | 251 | |
bastien_07 | 0:035a2e99ccdc | 252 | //s |
bastien_07 | 0:035a2e99ccdc | 253 | int iS1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 254 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 255 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 256 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 257 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 258 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 259 | {0,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 260 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 261 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 262 | }; |
bastien_07 | 0:035a2e99ccdc | 263 | |
bastien_07 | 0:035a2e99ccdc | 264 | //T |
bastien_07 | 0:035a2e99ccdc | 265 | int iT1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 266 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 267 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 268 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 269 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 270 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 271 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 272 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 273 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 274 | }; |
bastien_07 | 0:035a2e99ccdc | 275 | |
bastien_07 | 0:035a2e99ccdc | 276 | //U |
bastien_07 | 0:035a2e99ccdc | 277 | int iU1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 278 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 279 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 280 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 281 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 282 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 283 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 284 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 285 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 286 | }; |
bastien_07 | 0:035a2e99ccdc | 287 | |
bastien_07 | 0:035a2e99ccdc | 288 | //V |
bastien_07 | 0:035a2e99ccdc | 289 | int iV1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 290 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 291 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 292 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 293 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 294 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 295 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 296 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 297 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 298 | }; |
bastien_07 | 0:035a2e99ccdc | 299 | |
bastien_07 | 0:035a2e99ccdc | 300 | //W |
bastien_07 | 0:035a2e99ccdc | 301 | int iW1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 302 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 303 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 304 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 305 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 306 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 307 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 308 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 309 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 310 | }; |
bastien_07 | 0:035a2e99ccdc | 311 | |
bastien_07 | 0:035a2e99ccdc | 312 | //X |
bastien_07 | 0:035a2e99ccdc | 313 | int iX1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 314 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 315 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 316 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 317 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 318 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 319 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 320 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 321 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 322 | }; |
bastien_07 | 0:035a2e99ccdc | 323 | |
bastien_07 | 0:035a2e99ccdc | 324 | //Y |
bastien_07 | 0:035a2e99ccdc | 325 | int iY1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 326 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 327 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 328 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 329 | {color1,0,0,color1}, |
bastien_07 | 0:035a2e99ccdc | 330 | {0,color1,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 331 | {0,color1,0,0}, |
bastien_07 | 0:035a2e99ccdc | 332 | {color1,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 333 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 334 | }; |
bastien_07 | 0:035a2e99ccdc | 335 | |
bastien_07 | 0:035a2e99ccdc | 336 | //Z |
bastien_07 | 0:035a2e99ccdc | 337 | int iZ1[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 338 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 339 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 340 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 341 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 342 | {0,0,color1,0}, |
bastien_07 | 0:035a2e99ccdc | 343 | {0,color1,0,0}, |
bastien_07 | 0:035a2e99ccdc | 344 | {color1,color1,color1,color1}, |
bastien_07 | 0:035a2e99ccdc | 345 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 346 | }; |
bastien_07 | 0:035a2e99ccdc | 347 | |
bastien_07 | 0:035a2e99ccdc | 348 | |
bastien_07 | 0:035a2e99ccdc | 349 | |
bastien_07 | 0:035a2e99ccdc | 350 | ///////////////////////////SECOND LETTERS |
bastien_07 | 0:035a2e99ccdc | 351 | //A |
bastien_07 | 0:035a2e99ccdc | 352 | int iA2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 353 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 354 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 355 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 356 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 357 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 358 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 359 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 360 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 361 | }; |
bastien_07 | 0:035a2e99ccdc | 362 | |
bastien_07 | 0:035a2e99ccdc | 363 | //B |
bastien_07 | 0:035a2e99ccdc | 364 | int iB2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 365 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 366 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 367 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 368 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 369 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 370 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 371 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 372 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 373 | }; |
bastien_07 | 0:035a2e99ccdc | 374 | |
bastien_07 | 0:035a2e99ccdc | 375 | //C |
bastien_07 | 0:035a2e99ccdc | 376 | int iC2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 377 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 378 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 379 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 380 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 381 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 382 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 383 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 384 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 385 | }; |
bastien_07 | 0:035a2e99ccdc | 386 | |
bastien_07 | 0:035a2e99ccdc | 387 | //D |
bastien_07 | 0:035a2e99ccdc | 388 | int iD2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 389 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 390 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 391 | {0,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 392 | {0,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 393 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 394 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 395 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 396 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 397 | }; |
bastien_07 | 0:035a2e99ccdc | 398 | |
bastien_07 | 0:035a2e99ccdc | 399 | //E |
bastien_07 | 0:035a2e99ccdc | 400 | int iE2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 401 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 402 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 403 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 404 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 405 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 406 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 407 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 408 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 409 | }; |
bastien_07 | 0:035a2e99ccdc | 410 | |
bastien_07 | 0:035a2e99ccdc | 411 | //F |
bastien_07 | 0:035a2e99ccdc | 412 | int iF2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 413 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 414 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 415 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 416 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 417 | {color2,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 418 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 419 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 420 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 421 | }; |
bastien_07 | 0:035a2e99ccdc | 422 | |
bastien_07 | 0:035a2e99ccdc | 423 | //G |
bastien_07 | 0:035a2e99ccdc | 424 | int iG2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 425 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 426 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 427 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 428 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 429 | {color2,0,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 430 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 431 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 432 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 433 | }; |
bastien_07 | 0:035a2e99ccdc | 434 | |
bastien_07 | 0:035a2e99ccdc | 435 | //H |
bastien_07 | 0:035a2e99ccdc | 436 | int iH2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 437 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 438 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 439 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 440 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 441 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 442 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 443 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 444 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 445 | }; |
bastien_07 | 0:035a2e99ccdc | 446 | |
bastien_07 | 0:035a2e99ccdc | 447 | //I |
bastien_07 | 0:035a2e99ccdc | 448 | int iI2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 449 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 450 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 451 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 452 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 453 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 454 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 455 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 456 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 457 | }; |
bastien_07 | 0:035a2e99ccdc | 458 | |
bastien_07 | 0:035a2e99ccdc | 459 | //J |
bastien_07 | 0:035a2e99ccdc | 460 | int iJ2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 461 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 462 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 463 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 464 | {0,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 465 | {0,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 466 | {0,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 467 | {color2,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 468 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 469 | }; |
bastien_07 | 0:035a2e99ccdc | 470 | |
bastien_07 | 0:035a2e99ccdc | 471 | //K |
bastien_07 | 0:035a2e99ccdc | 472 | int iK2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 473 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 474 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 475 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 476 | {color2,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 477 | {color2,color2,0,0}, |
bastien_07 | 0:035a2e99ccdc | 478 | {color2,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 479 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 480 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 481 | }; |
bastien_07 | 0:035a2e99ccdc | 482 | |
bastien_07 | 0:035a2e99ccdc | 483 | //L |
bastien_07 | 0:035a2e99ccdc | 484 | int iL2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 485 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 486 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 487 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 488 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 489 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 490 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 491 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 492 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 493 | }; |
bastien_07 | 0:035a2e99ccdc | 494 | |
bastien_07 | 0:035a2e99ccdc | 495 | //M |
bastien_07 | 0:035a2e99ccdc | 496 | int iM2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 497 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 498 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 499 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 500 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 501 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 502 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 503 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 504 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 505 | }; |
bastien_07 | 0:035a2e99ccdc | 506 | |
bastien_07 | 0:035a2e99ccdc | 507 | //N |
bastien_07 | 0:035a2e99ccdc | 508 | int iN2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 509 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 510 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 511 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 512 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 513 | {color2,color2,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 514 | {color2,0,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 515 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 516 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 517 | }; |
bastien_07 | 0:035a2e99ccdc | 518 | |
bastien_07 | 0:035a2e99ccdc | 519 | //O |
bastien_07 | 0:035a2e99ccdc | 520 | int iO2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 521 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 522 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 523 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 524 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 525 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 526 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 527 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 528 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 529 | }; |
bastien_07 | 0:035a2e99ccdc | 530 | |
bastien_07 | 0:035a2e99ccdc | 531 | //P |
bastien_07 | 0:035a2e99ccdc | 532 | int iP2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 533 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 534 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 535 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 536 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 537 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 538 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 539 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 540 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 541 | }; |
bastien_07 | 0:035a2e99ccdc | 542 | |
bastien_07 | 0:035a2e99ccdc | 543 | //Q |
bastien_07 | 0:035a2e99ccdc | 544 | int iQ2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 545 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 546 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 547 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 548 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 549 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 550 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 551 | {0,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 552 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 553 | }; |
bastien_07 | 0:035a2e99ccdc | 554 | |
bastien_07 | 0:035a2e99ccdc | 555 | //R |
bastien_07 | 0:035a2e99ccdc | 556 | int iR2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 557 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 558 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 559 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 560 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 561 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 562 | {color2,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 563 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 564 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 565 | }; |
bastien_07 | 0:035a2e99ccdc | 566 | |
bastien_07 | 0:035a2e99ccdc | 567 | //s |
bastien_07 | 0:035a2e99ccdc | 568 | int iS2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 569 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 570 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 571 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 572 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 573 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 574 | {0,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 575 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 576 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 577 | }; |
bastien_07 | 0:035a2e99ccdc | 578 | |
bastien_07 | 0:035a2e99ccdc | 579 | //T |
bastien_07 | 0:035a2e99ccdc | 580 | int iT2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 581 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 582 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 583 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 584 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 585 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 586 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 587 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 588 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 589 | }; |
bastien_07 | 0:035a2e99ccdc | 590 | |
bastien_07 | 0:035a2e99ccdc | 591 | //U |
bastien_07 | 0:035a2e99ccdc | 592 | int iU2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 593 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 594 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 595 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 596 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 597 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 598 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 599 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 600 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 601 | }; |
bastien_07 | 0:035a2e99ccdc | 602 | |
bastien_07 | 0:035a2e99ccdc | 603 | //V |
bastien_07 | 0:035a2e99ccdc | 604 | int iV2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 605 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 606 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 607 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 608 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 609 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 610 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 611 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 612 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 613 | }; |
bastien_07 | 0:035a2e99ccdc | 614 | |
bastien_07 | 0:035a2e99ccdc | 615 | //W |
bastien_07 | 0:035a2e99ccdc | 616 | int iW2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 617 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 618 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 619 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 620 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 621 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 622 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 623 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 624 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 625 | }; |
bastien_07 | 0:035a2e99ccdc | 626 | |
bastien_07 | 0:035a2e99ccdc | 627 | //X |
bastien_07 | 0:035a2e99ccdc | 628 | int iX2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 629 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 630 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 631 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 632 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 633 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 634 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 635 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 636 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 637 | }; |
bastien_07 | 0:035a2e99ccdc | 638 | |
bastien_07 | 0:035a2e99ccdc | 639 | //Y |
bastien_07 | 0:035a2e99ccdc | 640 | int iY2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 641 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 642 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 643 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 644 | {color2,0,0,color2}, |
bastien_07 | 0:035a2e99ccdc | 645 | {0,color2,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 646 | {0,color2,0,0}, |
bastien_07 | 0:035a2e99ccdc | 647 | {color2,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 648 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 649 | }; |
bastien_07 | 0:035a2e99ccdc | 650 | |
bastien_07 | 0:035a2e99ccdc | 651 | //Z |
bastien_07 | 0:035a2e99ccdc | 652 | int iZ2[8][4]= { |
bastien_07 | 0:035a2e99ccdc | 653 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 654 | {bande,bande,bande,bande}, |
bastien_07 | 0:035a2e99ccdc | 655 | {0,0,0,0}, |
bastien_07 | 0:035a2e99ccdc | 656 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 657 | {0,0,color2,0}, |
bastien_07 | 0:035a2e99ccdc | 658 | {0,color2,0,0}, |
bastien_07 | 0:035a2e99ccdc | 659 | {color2,color2,color2,color2}, |
bastien_07 | 0:035a2e99ccdc | 660 | {bande,bande,bande,bande} |
bastien_07 | 0:035a2e99ccdc | 661 | }; |
bastien_07 | 0:035a2e99ccdc | 662 | |
bastien_07 | 0:035a2e99ccdc | 663 | |
bastien_07 | 0:035a2e99ccdc | 664 | /////////////////////SWITCH1 |
bastien_07 | 0:035a2e99ccdc | 665 | switch(Choix1) |
bastien_07 | 0:035a2e99ccdc | 666 | { |
bastien_07 | 0:035a2e99ccdc | 667 | case 'a': |
bastien_07 | 0:035a2e99ccdc | 668 | EgalTab(iTab1,iA1); |
bastien_07 | 0:035a2e99ccdc | 669 | break; |
bastien_07 | 0:035a2e99ccdc | 670 | |
bastien_07 | 0:035a2e99ccdc | 671 | case 'b': |
bastien_07 | 0:035a2e99ccdc | 672 | EgalTab(iTab1,iB1); |
bastien_07 | 0:035a2e99ccdc | 673 | break; |
bastien_07 | 0:035a2e99ccdc | 674 | |
bastien_07 | 0:035a2e99ccdc | 675 | case 'c': |
bastien_07 | 0:035a2e99ccdc | 676 | EgalTab(iTab1,iC1); |
bastien_07 | 0:035a2e99ccdc | 677 | break; |
bastien_07 | 0:035a2e99ccdc | 678 | |
bastien_07 | 0:035a2e99ccdc | 679 | case 'd': |
bastien_07 | 0:035a2e99ccdc | 680 | EgalTab(iTab1,iD1); |
bastien_07 | 0:035a2e99ccdc | 681 | break; |
bastien_07 | 0:035a2e99ccdc | 682 | |
bastien_07 | 0:035a2e99ccdc | 683 | case 'e': |
bastien_07 | 0:035a2e99ccdc | 684 | EgalTab(iTab1,iE1); |
bastien_07 | 0:035a2e99ccdc | 685 | break; |
bastien_07 | 0:035a2e99ccdc | 686 | |
bastien_07 | 0:035a2e99ccdc | 687 | case 'f': |
bastien_07 | 0:035a2e99ccdc | 688 | EgalTab(iTab1,iF1); |
bastien_07 | 0:035a2e99ccdc | 689 | break; |
bastien_07 | 0:035a2e99ccdc | 690 | |
bastien_07 | 0:035a2e99ccdc | 691 | case 'g': |
bastien_07 | 0:035a2e99ccdc | 692 | EgalTab(iTab1,iG1); |
bastien_07 | 0:035a2e99ccdc | 693 | break; |
bastien_07 | 0:035a2e99ccdc | 694 | |
bastien_07 | 0:035a2e99ccdc | 695 | case 'h': |
bastien_07 | 0:035a2e99ccdc | 696 | EgalTab(iTab1,iH1); |
bastien_07 | 0:035a2e99ccdc | 697 | break; |
bastien_07 | 0:035a2e99ccdc | 698 | |
bastien_07 | 0:035a2e99ccdc | 699 | case 'i': |
bastien_07 | 0:035a2e99ccdc | 700 | EgalTab(iTab1,iI1); |
bastien_07 | 0:035a2e99ccdc | 701 | break; |
bastien_07 | 0:035a2e99ccdc | 702 | |
bastien_07 | 0:035a2e99ccdc | 703 | case 'j': |
bastien_07 | 0:035a2e99ccdc | 704 | EgalTab(iTab1,iJ1); |
bastien_07 | 0:035a2e99ccdc | 705 | break; |
bastien_07 | 0:035a2e99ccdc | 706 | |
bastien_07 | 0:035a2e99ccdc | 707 | case 'k': |
bastien_07 | 0:035a2e99ccdc | 708 | EgalTab(iTab1,iK1); |
bastien_07 | 0:035a2e99ccdc | 709 | break; |
bastien_07 | 0:035a2e99ccdc | 710 | |
bastien_07 | 0:035a2e99ccdc | 711 | case 'l': |
bastien_07 | 0:035a2e99ccdc | 712 | EgalTab(iTab1,iL1); |
bastien_07 | 0:035a2e99ccdc | 713 | break; |
bastien_07 | 0:035a2e99ccdc | 714 | |
bastien_07 | 0:035a2e99ccdc | 715 | case 'm': |
bastien_07 | 0:035a2e99ccdc | 716 | EgalTab(iTab1,iM1); |
bastien_07 | 0:035a2e99ccdc | 717 | break; |
bastien_07 | 0:035a2e99ccdc | 718 | |
bastien_07 | 0:035a2e99ccdc | 719 | case 'n': |
bastien_07 | 0:035a2e99ccdc | 720 | EgalTab(iTab1,iN1); |
bastien_07 | 0:035a2e99ccdc | 721 | break; |
bastien_07 | 0:035a2e99ccdc | 722 | |
bastien_07 | 0:035a2e99ccdc | 723 | case 'o': |
bastien_07 | 0:035a2e99ccdc | 724 | EgalTab(iTab1,iO1); |
bastien_07 | 0:035a2e99ccdc | 725 | break; |
bastien_07 | 0:035a2e99ccdc | 726 | |
bastien_07 | 0:035a2e99ccdc | 727 | case 'p': |
bastien_07 | 0:035a2e99ccdc | 728 | EgalTab(iTab1,iP1); |
bastien_07 | 0:035a2e99ccdc | 729 | break; |
bastien_07 | 0:035a2e99ccdc | 730 | |
bastien_07 | 0:035a2e99ccdc | 731 | case 'q': |
bastien_07 | 0:035a2e99ccdc | 732 | EgalTab(iTab1,iQ1); |
bastien_07 | 0:035a2e99ccdc | 733 | break; |
bastien_07 | 0:035a2e99ccdc | 734 | |
bastien_07 | 0:035a2e99ccdc | 735 | case 'r': |
bastien_07 | 0:035a2e99ccdc | 736 | EgalTab(iTab1,iR1); |
bastien_07 | 0:035a2e99ccdc | 737 | break; |
bastien_07 | 0:035a2e99ccdc | 738 | |
bastien_07 | 0:035a2e99ccdc | 739 | case 's': |
bastien_07 | 0:035a2e99ccdc | 740 | EgalTab(iTab1,iS1); |
bastien_07 | 0:035a2e99ccdc | 741 | break; |
bastien_07 | 0:035a2e99ccdc | 742 | |
bastien_07 | 0:035a2e99ccdc | 743 | case 't': |
bastien_07 | 0:035a2e99ccdc | 744 | EgalTab(iTab1,iT1); |
bastien_07 | 0:035a2e99ccdc | 745 | break; |
bastien_07 | 0:035a2e99ccdc | 746 | |
bastien_07 | 0:035a2e99ccdc | 747 | case 'u': |
bastien_07 | 0:035a2e99ccdc | 748 | EgalTab(iTab1,iU1); |
bastien_07 | 0:035a2e99ccdc | 749 | break; |
bastien_07 | 0:035a2e99ccdc | 750 | |
bastien_07 | 0:035a2e99ccdc | 751 | case 'v': |
bastien_07 | 0:035a2e99ccdc | 752 | EgalTab(iTab1,iV1); |
bastien_07 | 0:035a2e99ccdc | 753 | break; |
bastien_07 | 0:035a2e99ccdc | 754 | |
bastien_07 | 0:035a2e99ccdc | 755 | case 'w': |
bastien_07 | 0:035a2e99ccdc | 756 | EgalTab(iTab1,iW1); |
bastien_07 | 0:035a2e99ccdc | 757 | break; |
bastien_07 | 0:035a2e99ccdc | 758 | |
bastien_07 | 0:035a2e99ccdc | 759 | case 'x': |
bastien_07 | 0:035a2e99ccdc | 760 | EgalTab(iTab1,iX1); |
bastien_07 | 0:035a2e99ccdc | 761 | break; |
bastien_07 | 0:035a2e99ccdc | 762 | |
bastien_07 | 0:035a2e99ccdc | 763 | case 'y': |
bastien_07 | 0:035a2e99ccdc | 764 | EgalTab(iTab1,iY1); |
bastien_07 | 0:035a2e99ccdc | 765 | break; |
bastien_07 | 0:035a2e99ccdc | 766 | |
bastien_07 | 0:035a2e99ccdc | 767 | case 'z': |
bastien_07 | 0:035a2e99ccdc | 768 | EgalTab(iTab1,iZ1); |
bastien_07 | 0:035a2e99ccdc | 769 | break; |
bastien_07 | 0:035a2e99ccdc | 770 | |
bastien_07 | 0:035a2e99ccdc | 771 | } |
bastien_07 | 0:035a2e99ccdc | 772 | |
bastien_07 | 0:035a2e99ccdc | 773 | |
bastien_07 | 0:035a2e99ccdc | 774 | /////////////////////SWITCH2 |
bastien_07 | 0:035a2e99ccdc | 775 | switch(Choix2) |
bastien_07 | 0:035a2e99ccdc | 776 | { |
bastien_07 | 0:035a2e99ccdc | 777 | case 'a': |
bastien_07 | 0:035a2e99ccdc | 778 | EgalTab(iTab2,iA2); |
bastien_07 | 0:035a2e99ccdc | 779 | break; |
bastien_07 | 0:035a2e99ccdc | 780 | |
bastien_07 | 0:035a2e99ccdc | 781 | case 'b': |
bastien_07 | 0:035a2e99ccdc | 782 | EgalTab(iTab2,iB2); |
bastien_07 | 0:035a2e99ccdc | 783 | break; |
bastien_07 | 0:035a2e99ccdc | 784 | |
bastien_07 | 0:035a2e99ccdc | 785 | case 'c': |
bastien_07 | 0:035a2e99ccdc | 786 | EgalTab(iTab2,iC2); |
bastien_07 | 0:035a2e99ccdc | 787 | break; |
bastien_07 | 0:035a2e99ccdc | 788 | |
bastien_07 | 0:035a2e99ccdc | 789 | case 'd': |
bastien_07 | 0:035a2e99ccdc | 790 | EgalTab(iTab2,iD2); |
bastien_07 | 0:035a2e99ccdc | 791 | break; |
bastien_07 | 0:035a2e99ccdc | 792 | |
bastien_07 | 0:035a2e99ccdc | 793 | case 'e': |
bastien_07 | 0:035a2e99ccdc | 794 | EgalTab(iTab2,iE2); |
bastien_07 | 0:035a2e99ccdc | 795 | break; |
bastien_07 | 0:035a2e99ccdc | 796 | |
bastien_07 | 0:035a2e99ccdc | 797 | case 'f': |
bastien_07 | 0:035a2e99ccdc | 798 | EgalTab(iTab2,iF2); |
bastien_07 | 0:035a2e99ccdc | 799 | break; |
bastien_07 | 0:035a2e99ccdc | 800 | |
bastien_07 | 0:035a2e99ccdc | 801 | case 'g': |
bastien_07 | 0:035a2e99ccdc | 802 | EgalTab(iTab2,iG2); |
bastien_07 | 0:035a2e99ccdc | 803 | break; |
bastien_07 | 0:035a2e99ccdc | 804 | |
bastien_07 | 0:035a2e99ccdc | 805 | case 'h': |
bastien_07 | 0:035a2e99ccdc | 806 | EgalTab(iTab2,iH2); |
bastien_07 | 0:035a2e99ccdc | 807 | break; |
bastien_07 | 0:035a2e99ccdc | 808 | |
bastien_07 | 0:035a2e99ccdc | 809 | case 'i': |
bastien_07 | 0:035a2e99ccdc | 810 | EgalTab(iTab2,iI2); |
bastien_07 | 0:035a2e99ccdc | 811 | break; |
bastien_07 | 0:035a2e99ccdc | 812 | |
bastien_07 | 0:035a2e99ccdc | 813 | case 'j': |
bastien_07 | 0:035a2e99ccdc | 814 | EgalTab(iTab2,iJ2); |
bastien_07 | 0:035a2e99ccdc | 815 | break; |
bastien_07 | 0:035a2e99ccdc | 816 | |
bastien_07 | 0:035a2e99ccdc | 817 | case 'k': |
bastien_07 | 0:035a2e99ccdc | 818 | EgalTab(iTab2,iK2); |
bastien_07 | 0:035a2e99ccdc | 819 | break; |
bastien_07 | 0:035a2e99ccdc | 820 | |
bastien_07 | 0:035a2e99ccdc | 821 | case 'l': |
bastien_07 | 0:035a2e99ccdc | 822 | EgalTab(iTab2,iL2); |
bastien_07 | 0:035a2e99ccdc | 823 | break; |
bastien_07 | 0:035a2e99ccdc | 824 | |
bastien_07 | 0:035a2e99ccdc | 825 | case 'm': |
bastien_07 | 0:035a2e99ccdc | 826 | EgalTab(iTab2,iM2); |
bastien_07 | 0:035a2e99ccdc | 827 | break; |
bastien_07 | 0:035a2e99ccdc | 828 | |
bastien_07 | 0:035a2e99ccdc | 829 | case 'n': |
bastien_07 | 0:035a2e99ccdc | 830 | EgalTab(iTab2,iN2); |
bastien_07 | 0:035a2e99ccdc | 831 | break; |
bastien_07 | 0:035a2e99ccdc | 832 | |
bastien_07 | 0:035a2e99ccdc | 833 | case 'o': |
bastien_07 | 0:035a2e99ccdc | 834 | EgalTab(iTab2,iO2); |
bastien_07 | 0:035a2e99ccdc | 835 | break; |
bastien_07 | 0:035a2e99ccdc | 836 | |
bastien_07 | 0:035a2e99ccdc | 837 | case 'p': |
bastien_07 | 0:035a2e99ccdc | 838 | EgalTab(iTab2,iP2); |
bastien_07 | 0:035a2e99ccdc | 839 | break; |
bastien_07 | 0:035a2e99ccdc | 840 | |
bastien_07 | 0:035a2e99ccdc | 841 | case 'q': |
bastien_07 | 0:035a2e99ccdc | 842 | EgalTab(iTab2,iQ2); |
bastien_07 | 0:035a2e99ccdc | 843 | break; |
bastien_07 | 0:035a2e99ccdc | 844 | |
bastien_07 | 0:035a2e99ccdc | 845 | case 'r': |
bastien_07 | 0:035a2e99ccdc | 846 | EgalTab(iTab2,iR2); |
bastien_07 | 0:035a2e99ccdc | 847 | break; |
bastien_07 | 0:035a2e99ccdc | 848 | |
bastien_07 | 0:035a2e99ccdc | 849 | case 's': |
bastien_07 | 0:035a2e99ccdc | 850 | EgalTab(iTab2,iS2); |
bastien_07 | 0:035a2e99ccdc | 851 | break; |
bastien_07 | 0:035a2e99ccdc | 852 | |
bastien_07 | 0:035a2e99ccdc | 853 | case 't': |
bastien_07 | 0:035a2e99ccdc | 854 | EgalTab(iTab2,iT2); |
bastien_07 | 0:035a2e99ccdc | 855 | break; |
bastien_07 | 0:035a2e99ccdc | 856 | |
bastien_07 | 0:035a2e99ccdc | 857 | case 'u': |
bastien_07 | 0:035a2e99ccdc | 858 | EgalTab(iTab2,iU2); |
bastien_07 | 0:035a2e99ccdc | 859 | break; |
bastien_07 | 0:035a2e99ccdc | 860 | |
bastien_07 | 0:035a2e99ccdc | 861 | case 'v': |
bastien_07 | 0:035a2e99ccdc | 862 | EgalTab(iTab2,iV2); |
bastien_07 | 0:035a2e99ccdc | 863 | break; |
bastien_07 | 0:035a2e99ccdc | 864 | |
bastien_07 | 0:035a2e99ccdc | 865 | case 'w': |
bastien_07 | 0:035a2e99ccdc | 866 | EgalTab(iTab2,iW2); |
bastien_07 | 0:035a2e99ccdc | 867 | break; |
bastien_07 | 0:035a2e99ccdc | 868 | |
bastien_07 | 0:035a2e99ccdc | 869 | case 'x': |
bastien_07 | 0:035a2e99ccdc | 870 | EgalTab(iTab2,iX2); |
bastien_07 | 0:035a2e99ccdc | 871 | break; |
bastien_07 | 0:035a2e99ccdc | 872 | |
bastien_07 | 0:035a2e99ccdc | 873 | case 'y': |
bastien_07 | 0:035a2e99ccdc | 874 | EgalTab(iTab2,iY2); |
bastien_07 | 0:035a2e99ccdc | 875 | break; |
bastien_07 | 0:035a2e99ccdc | 876 | |
bastien_07 | 0:035a2e99ccdc | 877 | case 'z': |
bastien_07 | 0:035a2e99ccdc | 878 | EgalTab(iTab2,iZ2); |
bastien_07 | 0:035a2e99ccdc | 879 | break; |
bastien_07 | 0:035a2e99ccdc | 880 | |
bastien_07 | 0:035a2e99ccdc | 881 | } |
bastien_07 | 0:035a2e99ccdc | 882 | |
bastien_07 | 0:035a2e99ccdc | 883 | |
bastien_07 | 0:035a2e99ccdc | 884 | |
bastien_07 | 0:035a2e99ccdc | 885 | |
bastien_07 | 0:035a2e99ccdc | 886 | int iTab[8][8]; |
bastien_07 | 0:035a2e99ccdc | 887 | for(int i=0;i<8;i++) |
bastien_07 | 0:035a2e99ccdc | 888 | { |
bastien_07 | 0:035a2e99ccdc | 889 | for(int j=0;j<8;j++) |
bastien_07 | 0:035a2e99ccdc | 890 | { |
bastien_07 | 0:035a2e99ccdc | 891 | if(j>3) |
bastien_07 | 0:035a2e99ccdc | 892 | { |
bastien_07 | 0:035a2e99ccdc | 893 | iTab[i][j]=iTab2[i][j-4]; |
bastien_07 | 0:035a2e99ccdc | 894 | } |
bastien_07 | 0:035a2e99ccdc | 895 | else |
bastien_07 | 0:035a2e99ccdc | 896 | { |
bastien_07 | 0:035a2e99ccdc | 897 | iTab[i][j]=iTab1[i][j]; |
bastien_07 | 0:035a2e99ccdc | 898 | } |
bastien_07 | 0:035a2e99ccdc | 899 | |
bastien_07 | 0:035a2e99ccdc | 900 | } |
bastien_07 | 0:035a2e99ccdc | 901 | } |
bastien_07 | 0:035a2e99ccdc | 902 | |
bastien_07 | 0:035a2e99ccdc | 903 | |
bastien_07 | 0:035a2e99ccdc | 904 | int k=0,l,n; |
bastien_07 | 0:035a2e99ccdc | 905 | for(l=7; l>-1; l--) { |
bastien_07 | 0:035a2e99ccdc | 906 | if(k%2==1) { |
bastien_07 | 0:035a2e99ccdc | 907 | for(n=7; n>-1; n--) { |
bastien_07 | 0:035a2e99ccdc | 908 | switch(iTab[l][n]) { |
bastien_07 | 0:035a2e99ccdc | 909 | case 0: |
bastien_07 | 0:035a2e99ccdc | 910 | colorbuf[(k*8)+7-n]=0x000000; |
bastien_07 | 0:035a2e99ccdc | 911 | break; |
bastien_07 | 0:035a2e99ccdc | 912 | case 1: |
bastien_07 | 0:035a2e99ccdc | 913 | colorbuf[(k*8)+7-n]=0xff0000; |
bastien_07 | 0:035a2e99ccdc | 914 | break; |
bastien_07 | 0:035a2e99ccdc | 915 | case 2: |
bastien_07 | 0:035a2e99ccdc | 916 | colorbuf[(k*8)+7-n]=0x00ff00; |
bastien_07 | 0:035a2e99ccdc | 917 | break; |
bastien_07 | 0:035a2e99ccdc | 918 | case 3: |
bastien_07 | 0:035a2e99ccdc | 919 | colorbuf[(k*8)+7-n]=0x0000ff; |
bastien_07 | 0:035a2e99ccdc | 920 | break; |
bastien_07 | 0:035a2e99ccdc | 921 | case 4: |
bastien_07 | 0:035a2e99ccdc | 922 | colorbuf[(k*8)+7-n]=0xffff00; |
bastien_07 | 0:035a2e99ccdc | 923 | break; |
bastien_07 | 0:035a2e99ccdc | 924 | case 5: |
bastien_07 | 0:035a2e99ccdc | 925 | colorbuf[(k*8)+7-n]=0x582900; |
bastien_07 | 0:035a2e99ccdc | 926 | break; |
bastien_07 | 0:035a2e99ccdc | 927 | case 6: |
bastien_07 | 0:035a2e99ccdc | 928 | colorbuf[(k*8)+7-n]=0xffffff; |
bastien_07 | 0:035a2e99ccdc | 929 | break; |
bastien_07 | 0:035a2e99ccdc | 930 | case 7: |
bastien_07 | 0:035a2e99ccdc | 931 | colorbuf[(k*8)+7-n]=0xfA25CB; |
bastien_07 | 0:035a2e99ccdc | 932 | break; |
bastien_07 | 0:035a2e99ccdc | 933 | case 8: |
bastien_07 | 0:035a2e99ccdc | 934 | colorbuf[(k*8)+7-n]=0x606060; |
bastien_07 | 0:035a2e99ccdc | 935 | break; |
bastien_07 | 0:035a2e99ccdc | 936 | case 9: |
bastien_07 | 0:035a2e99ccdc | 937 | colorbuf[(k*8)+7-n]=0x7f00ff; |
bastien_07 | 0:035a2e99ccdc | 938 | break; |
bastien_07 | 0:035a2e99ccdc | 939 | } |
bastien_07 | 0:035a2e99ccdc | 940 | } |
bastien_07 | 0:035a2e99ccdc | 941 | k++; |
bastien_07 | 0:035a2e99ccdc | 942 | } else if(k%2==0) { |
bastien_07 | 0:035a2e99ccdc | 943 | for(n=0; n<8; n++) { |
bastien_07 | 0:035a2e99ccdc | 944 | switch(iTab[l][n]) { |
bastien_07 | 0:035a2e99ccdc | 945 | case 0: |
bastien_07 | 0:035a2e99ccdc | 946 | colorbuf[(k*8)+n]=0x000000; |
bastien_07 | 0:035a2e99ccdc | 947 | break; |
bastien_07 | 0:035a2e99ccdc | 948 | case 1: |
bastien_07 | 0:035a2e99ccdc | 949 | colorbuf[(k*8)+n]=0xff0000; |
bastien_07 | 0:035a2e99ccdc | 950 | break; |
bastien_07 | 0:035a2e99ccdc | 951 | case 2: |
bastien_07 | 0:035a2e99ccdc | 952 | colorbuf[(k*8)+n]=0x00ff00; |
bastien_07 | 0:035a2e99ccdc | 953 | break; |
bastien_07 | 0:035a2e99ccdc | 954 | case 3: |
bastien_07 | 0:035a2e99ccdc | 955 | colorbuf[(k*8)+n]=0x0000ff; |
bastien_07 | 0:035a2e99ccdc | 956 | break; |
bastien_07 | 0:035a2e99ccdc | 957 | case 4: |
bastien_07 | 0:035a2e99ccdc | 958 | colorbuf[(k*8)+n]=0xffff00; |
bastien_07 | 0:035a2e99ccdc | 959 | break; |
bastien_07 | 0:035a2e99ccdc | 960 | case 5: |
bastien_07 | 0:035a2e99ccdc | 961 | colorbuf[(k*8)+n]=0x582900; |
bastien_07 | 0:035a2e99ccdc | 962 | break; |
bastien_07 | 0:035a2e99ccdc | 963 | case 6: |
bastien_07 | 0:035a2e99ccdc | 964 | colorbuf[(k*8)+n]=0xffffff; |
bastien_07 | 0:035a2e99ccdc | 965 | break; |
bastien_07 | 0:035a2e99ccdc | 966 | case 7: |
bastien_07 | 0:035a2e99ccdc | 967 | colorbuf[(k*8)+n]=0xfA25CB; |
bastien_07 | 0:035a2e99ccdc | 968 | break; |
bastien_07 | 0:035a2e99ccdc | 969 | case 8: |
bastien_07 | 0:035a2e99ccdc | 970 | colorbuf[(k*8)+n]=0x606060; |
bastien_07 | 0:035a2e99ccdc | 971 | break; |
bastien_07 | 0:035a2e99ccdc | 972 | case 9: |
bastien_07 | 0:035a2e99ccdc | 973 | colorbuf[(k*8)+n]=0x7f00ff; |
bastien_07 | 0:035a2e99ccdc | 974 | break; |
bastien_07 | 0:035a2e99ccdc | 975 | } |
bastien_07 | 0:035a2e99ccdc | 976 | } |
bastien_07 | 0:035a2e99ccdc | 977 | k++; |
bastien_07 | 0:035a2e99ccdc | 978 | } |
bastien_07 | 0:035a2e99ccdc | 979 | } |
bastien_07 | 0:035a2e99ccdc | 980 | |
bastien_07 | 0:035a2e99ccdc | 981 | |
bastien_07 | 0:035a2e99ccdc | 982 | |
bastien_07 | 0:035a2e99ccdc | 983 | for (int d=0+64*NbrAfficheur; d<NUM_COLORS; d++) |
bastien_07 | 0:035a2e99ccdc | 984 | { |
bastien_07 | 0:035a2e99ccdc | 985 | colorbuffer[d]=colorbuf[d-64*NbrAfficheur]; |
bastien_07 | 0:035a2e99ccdc | 986 | } |
bastien_07 | 0:035a2e99ccdc | 987 | NbrAfficheur++; |
bastien_07 | 0:035a2e99ccdc | 988 | |
bastien_07 | 0:035a2e99ccdc | 989 | |
bastien_07 | 0:035a2e99ccdc | 990 | |
bastien_07 | 0:035a2e99ccdc | 991 | |
bastien_07 | 0:035a2e99ccdc | 992 | |
bastien_07 | 0:035a2e99ccdc | 993 | |
bastien_07 | 0:035a2e99ccdc | 994 | } |
bastien_07 | 0:035a2e99ccdc | 995 | void NewDisplay() |
bastien_07 | 0:035a2e99ccdc | 996 | { |
bastien_07 | 0:035a2e99ccdc | 997 | NbrAfficheur=0; |
bastien_07 | 0:035a2e99ccdc | 998 | } |
bastien_07 | 0:035a2e99ccdc | 999 | |
bastien_07 | 0:035a2e99ccdc | 1000 | void Display() |
bastien_07 | 0:035a2e99ccdc | 1001 | { |
bastien_07 | 0:035a2e99ccdc | 1002 | |
bastien_07 | 0:035a2e99ccdc | 1003 | |
bastien_07 | 0:035a2e99ccdc | 1004 | // set up the colours we want to draw with |
bastien_07 | 0:035a2e99ccdc | 1005 | //int colorbuf[NUM_COLORS] = {0x000000,0x000000,0x8B6C42,0x8B6C42,0x000000,0xff0000,0x2f2f00,0xff0000,0xff0000,0x2f2f00,0xff0000,0x00ff00,0x00ff00,0x00ff00,0x00ff00,0x00ff00}; |
bastien_07 | 0:035a2e99ccdc | 1006 | |
bastien_07 | 0:035a2e99ccdc | 1007 | // for each of the colours (j) write out 10 of them |
bastien_07 | 0:035a2e99ccdc | 1008 | // the pixels are written at the colour*10, plus the colour position |
bastien_07 | 0:035a2e99ccdc | 1009 | // all modulus 60 so it wraps around |
bastien_07 | 0:035a2e99ccdc | 1010 | for (int i = 0; i < WS2812_BUF; i++) |
bastien_07 | 0:035a2e99ccdc | 1011 | { |
bastien_07 | 0:035a2e99ccdc | 1012 | px.Set(i, colorbuffer[(i) % NUM_COLORS]); |
bastien_07 | 0:035a2e99ccdc | 1013 | } |
bastien_07 | 0:035a2e99ccdc | 1014 | |
bastien_07 | 0:035a2e99ccdc | 1015 | // now all the colours are computed, add a fade effect using intensity scaling |
bastien_07 | 0:035a2e99ccdc | 1016 | // compute and write the II value for each pixel |
bastien_07 | 0:035a2e99ccdc | 1017 | for (int j=0; j<WS2812_BUF; j++) |
bastien_07 | 0:035a2e99ccdc | 1018 | { |
bastien_07 | 0:035a2e99ccdc | 1019 | // px.SetI(pixel position, II value) |
bastien_07 | 0:035a2e99ccdc | 1020 | px.SetI(j%WS2812_BUF, 0xf+(0xff*(j%1))); |
bastien_07 | 0:035a2e99ccdc | 1021 | } |
bastien_07 | 0:035a2e99ccdc | 1022 | |
bastien_07 | 0:035a2e99ccdc | 1023 | |
bastien_07 | 0:035a2e99ccdc | 1024 | // Now the buffer is written, rotate it |
bastien_07 | 0:035a2e99ccdc | 1025 | // by writing it out with an increasing offset |
bastien_07 | 0:035a2e99ccdc | 1026 | for (int z=WS2812_BUF; z >= 0 ; z--) |
bastien_07 | 0:035a2e99ccdc | 1027 | { |
bastien_07 | 0:035a2e99ccdc | 1028 | ws.write_offsets(px.getBuf(),z,z,z); |
bastien_07 | 0:035a2e99ccdc | 1029 | //wait(0.075); |
bastien_07 | 0:035a2e99ccdc | 1030 | } |
bastien_07 | 0:035a2e99ccdc | 1031 | |
bastien_07 | 0:035a2e99ccdc | 1032 | } |