EJEMPLO

Dependencies:   mbed

Fork of 00_LAB_matrix8x8_SPI by ferney alberto beltran molina

figuras.h

Committer:
fabeltranm
Date:
2018-09-14
Revision:
5:d1c3238ea285
Parent:
4:2bc5dfe058ef

File content as of revision 5:d1c3238ea285:

#ifndef FIGURAS_H   
#define FIGURAS_H  

#include "mbed.h"

#define L_TYPE 0x01
#define S_TYPE 0x02
#define I_TYPE 0x03
#define NULL_TYPE 0x00
/* 
    FIG_L                FIG_I              FIG_S               FIG_T
1 0 0 0 0 0 0 0     1 0 0 0 0 0 0 0     0 0 1 0 0 0 0 0     0 1 0 0 0 0 0 0
1 0 0 0 0 0 0 0     1 0 0 0 0 0 0 0     1 1 0 0 0 0 0 0     1 1 1 0 0 0 0 0
1 1 0 0 0 0 0 0     1 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0


*/
struct {
    uint8_t fig[3];
    int posx;
} fig_act;



uint8_t FIG_L[3]={0b11100000,0b00100000,0b00000000};
uint8_t FIG_I[3]={0b10000000,0b10000000,0b10000000};
uint8_t FIG_S[3]={0b01000000,0b01000000,0b10000000};
uint8_t FIG_T[3]={0b01000000,0b01000000,0b11000000};
uint8_t FIG_NULL[3]={0,0,0};





#endif //  FIGURAS_H