From 66dcf910bd4744d8ced56cb9586aa937a1a2d4c5 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 7 Jul 2020 16:24:01 +0200 Subject: first commit --- instructables/cube_pc/cube.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 instructables/cube_pc/cube.h (limited to 'instructables/cube_pc/cube.h') diff --git a/instructables/cube_pc/cube.h b/instructables/cube_pc/cube.h new file mode 100644 index 0000000..bac730e --- /dev/null +++ b/instructables/cube_pc/cube.h @@ -0,0 +1,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]); + + -- cgit v1.2.3