aboutsummaryrefslogtreecommitdiffstats
path: root/instructables/cube_pc/cube.h
diff options
context:
space:
mode:
Diffstat (limited to 'instructables/cube_pc/cube.h')
-rw-r--r--instructables/cube_pc/cube.h25
1 files changed, 25 insertions, 0 deletions
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]);
+
+