aboutsummaryrefslogtreecommitdiff
path: root/include/brailleboi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/brailleboi.h')
-rw-r--r--include/brailleboi.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/brailleboi.h b/include/brailleboi.h
new file mode 100644
index 0000000..26ada93
--- /dev/null
+++ b/include/brailleboi.h
@@ -0,0 +1,24 @@
+#ifndef BRAILLEBOI_H
+#define BRAILLEBOI_H
+
+typedef struct image_buffer {
+ int width, height;
+ int char_width, char_height;
+ int* contents;
+} image_buffer;
+
+int brailleInit(int width, int height, image_buffer* buf);
+
+int brailleStop(image_buffer* buf);
+
+int brailleReorganizeBits(int old);
+
+void braillePrint(int data);
+
+int braillePlot(int x, int y, image_buffer* buf);
+
+void brailleClearBuffer(image_buffer* buf);
+
+void brailleUpdateScreen(image_buffer* buf);
+
+#endif