Subversion Repositories Code-Repo

Rev

Rev 199 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 200
Line 30... Line 30...
30
#define XBLNK_TRIS TRISDbits.TRISD2
30
#define XBLNK_TRIS TRISDbits.TRISD2
31
 
31
 
32
#define GSLAT PORTDbits.RD9
32
#define GSLAT PORTDbits.RD9
33
#define XBLNK PORTDbits.RD2
33
#define XBLNK PORTDbits.RD2
34
 
34
 
-
 
35
#define CUBE_MAX_BRIGHTNESS 0x7F
-
 
36
 
35
typedef struct {
37
typedef struct {
36
    unsigned char GCS[CUBE_LAYER_COUNT][GCS_LAYER_SIZE];
38
    unsigned char GCS[CUBE_LAYER_COUNT][GCS_LAYER_SIZE];
37
} CUBE_DATA;
39
} CUBE_DATA;
38
 
40
 
39
void Cube_Init(CUBE_DATA *data);
41
void Cube_Init(CUBE_DATA *data, char BC);
40
void Cube_Timer_Interrupt(void);
42
void Cube_Timer_Interrupt(void);
41
 
43
 
42
// Callbacks on completion of DCS/GCS writes
44
// Callbacks on completion of DCS/GCS writes
43
void Cube_DCS_Write_Callback(void);
45
void Cube_DCS_Write_Callback(void);
44
void Cube_GCS_Write_Callback(void);
46
void Cube_GCS_Write_Callback(void);
45
 
47
 
46
// Cube control functions
48
// Cube control functions
-
 
49
void Cube_Write_DCS(char BC);
47
void Cube_Clear(void);
50
void Cube_Clear(void);
48
void Cube_Set_All(int R, int G, int B);
51
void Cube_Set_All(int R, int G, int B);
49
void Cube_Set_Layer(int layer, int R, int G, int B);
52
void Cube_Set_Layer(int layer, int R, int G, int B);
50
void Cube_Set_Pixel(int layer, int row, int column, int R, int G, int B);
53
void Cube_Set_Pixel(int layer, int row, int column, int R, int G, int B);
51
 
54