Alyson Castiblanco
/
00_01LAB_matrix8x8_fig_tetris
ok
Fork of 00_01LAB_matrix8x8_fig_tetris by
Diff: figuras.h
- Revision:
- 5:819f043b99a5
- Parent:
- 4:2bc5dfe058ef
--- a/figuras.h Tue Sep 04 22:31:01 2018 +0000 +++ b/figuras.h Sat Sep 08 03:46:46 2018 +0000 @@ -3,14 +3,42 @@ #include "mbed.h" -#define L_TYPE 'L' -#define S_TYPE 'S' -#define I_TYPE 'I' +#define L_TYPE 0 +#define S_TYPE 4 +#define C_TYPE 3 +#define T_TYPE 1 +#define I_TYPE 2 +#define NOVEN 1 +#define PII 2 +#define DOSSE 3 +#define ZERO 0 +#define UNO 1 +#define DOS 2 +#define TRES 3 +#define CUATRO 4 +#define CINCO 5 +#define SEIS 6 +#define SIETE 7 +#define OCHO 8 #define NULL_TYPE 'N' - uint8_t FIG_L[11]={0b10000000,0b10000000,0b11000000,0,0,0,0,0,0,0}; - uint8_t FIG_I[11]={0b10000000,0b10000000,0b10000000,0,0,0,0,0,0,0}; - uint8_t FIG_S[11]={0b01100000,0b01000000,0b11000000,0,0,0,0,0,0,0}; + uint8_t FIG_T [11]={0b01000000,0b11100000,0,0,0,0,0,0,0,0}; + uint8_t FIG_T1[11]={0b10000000,0b11000000,0b10000000,0,0,0,0,0,0,0}; + uint8_t FIG_T2[11]={0b11100000,0b01000000,0,0,0,0,0,0,0,0}; + uint8_t FIG_T3[11]={0b01000000,0b11000000,0b01000000,0,0,0,0,0,0,0}; + uint8_t FIG_L [11]={0b10000000,0b10000000,0b11000000,0,0,0,0,0,0,0}; + uint8_t FIG_L1[11]={0b11100000,0b10000000,0,0,0,0,0,0,0,0}; + uint8_t FIG_L3[11]={0b10000000,0b11100000,0,0,0,0,0,0,0,0}; + uint8_t FIG_L2[11]={0b11000000,0b01000000,0b01000000,0,0,0,0,0,0,0}; + uint8_t FIG_I [11]={0b10000000,0b10000000,0b10000000,0,0,0,0,0,0,0}; + uint8_t FIG_I1[11]={0b11100000,0,0,0,0,0,0,0,0,0}; + uint8_t FIG_I2[11]={0b10000000,0b10000000,0b10000000,0,0,0,0,0,0,0}; + uint8_t FIG_I3[11]={0b11100000,0,0,0,0,0,0,0,0,0}; + uint8_t FIG_S [11]={0b01100000,0b11000000,0,0,0,0,0,0,0,0}; + uint8_t FIG_S1[11]={0b10000000,0b11000000,0b01000000,0,0,0,0,0,0,0}; + uint8_t FIG_S3[11]={0b10000000,0b11000000,0b01000000,0,0,0,0,0,0,0}; + uint8_t FIG_S2[11]={0b01100000,0b11000000,0,0,0,0,0,0,0,0}; + uint8_t FIG_C[11] ={0b11000000,0b11000000,0,0,0,0,0,0,0,0}; uint8_t FIG_NULL[11]={0,0,0,0,0,0,0,0,0,0,0}; #endif // FIGURAS_H \ No newline at end of file