summaryrefslogtreecommitdiff
path: root/src/ssd1306_display_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssd1306_display_driver.h')
-rw-r--r--src/ssd1306_display_driver.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ssd1306_display_driver.h b/src/ssd1306_display_driver.h
new file mode 100644
index 0000000..f6e333d
--- /dev/null
+++ b/src/ssd1306_display_driver.h
@@ -0,0 +1,17 @@
+#ifndef __SSD1306_H
+#define __SSD1306_H
+
+#include <stdint.h>
+
+#define SCREEN_RES_X 128
+#define SCREEN_RES_Y 32
+
+uint8_t screen_buffer[(SCREEN_RES_X * SCREEN_RES_Y) / 8];
+
+void screen_init();
+void screen_testdraw();
+void screen_off();
+void screen_on();
+void screen_update();
+
+#endif