aboutsummaryrefslogtreecommitdiffstats
path: root/instructables/cube_pc/cube.h
blob: bac730e05717ee97f9ef12eebb2058967728d4cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define AXIS_X 0x78
#define AXIS_Y 0x79
#define AXIS_Z 0x7a

#define CUBE_SIZE 8

int LED_PORT;
int LED_RED;
int LED_GREEN;

volatile unsigned char cube[8][8];
volatile unsigned char rs232_cube[8][8];
unsigned char fb[8][8];

int tty;

// FILE *ftty;

// func dsfs
void cube_putchar (unsigned char data);
int cube_init (const char* tty_path);
void cube_push (unsigned char data[8][8]);