Subversion Repositories Code-Repo

Rev

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

Rev 266 Rev 268
Line 26... Line 26...
26
#define SFT_D_TRIS TRISBbits.TRISB15
26
#define SFT_D_TRIS TRISBbits.TRISB15
27
#define SFT_S_TRIS TRISDbits.TRISD5
27
#define SFT_S_TRIS TRISDbits.TRISD5
28
#define SFT_K_TRIS TRISDbits.TRISD4
28
#define SFT_K_TRIS TRISDbits.TRISD4
29
#define SFT_R_TRIS TRISBbits.TRISB14
29
#define SFT_R_TRIS TRISBbits.TRISB14
30
 
30
 
31
#define SFT_D PORTBbits.RB15
31
#define SFT_D LATBbits.LATB15
32
#define SFT_S PORTDbits.RD5
32
#define SFT_S LATDbits.LATD5
33
#define SFT_K PORTDbits.RD4
33
#define SFT_K LATDbits.LATD4
34
#define SFT_R PORTBbits.RB14
34
#define SFT_R LATBbits.LATB14
35
 
35
 
36
#define GSLAT_TRIS TRISDbits.TRISD9
36
#define GSLAT_TRIS TRISDbits.TRISD9
37
#define XBLNK_TRIS TRISDbits.TRISD2
37
#define XBLNK_TRIS TRISDbits.TRISD2
38
 
38
 
39
#define GSLAT PORTDbits.RD9
39
#define GSLAT LATDbits.LATD9
40
#define XBLNK PORTDbits.RD2
40
#define XBLNK LATDbits.LATD2
41
 
41
 
42
// String Overlay Buffer Size
42
// String Overlay Buffer Size
43
#define CUBE_STRING_MAX_LENGTH 255
43
#define CUBE_STRING_MAX_LENGTH 255
44
 
44
 
45
// Data Streaming In Buffer Size
45
// Data Streaming In Buffer Size
Line 140... Line 140...
140
void Cube_Overlay_Rotate_Shell(uint8_t shell, uint8_t direction);
140
void Cube_Overlay_Rotate_Shell(uint8_t shell, uint8_t direction);
141
 
141
 
142
// Text control functions
142
// Text control functions
143
void Cube_Text_Init(uint8_t *string, uint8_t length, uint16_t R, uint16_t G, uint16_t B);
143
void Cube_Text_Init(uint8_t *string, uint8_t length, uint16_t R, uint16_t G, uint16_t B);
144
void Cube_Text_Update(void);
144
void Cube_Text_Update(void);
145
void Cube_Text_Insert(uint8_t c, uint16_t R, uint16_t G, uint16_t B);
145
void Cube_Text_Insert(uint8_t c, uint16_t R, uint16_t G, uint16_t B, uint16_t delay);
-
 
146
void Cube_Text_Single_Char_Interupt(void);
146
void Cube_Text_Interrupt(void);
147
void Cube_Text_Interrupt(void);
147
 
148
 
148
// Data stream in control functions
149
// Data stream in control functions
149
// UART functions
150
// UART functions
150
void Cube_Data_In(uint8_t c);
151
void Cube_Data_In(uint8_t c);