summaryrefslogtreecommitdiff
path: root/include/driver
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver')
-rw-r--r--include/driver/sharp96.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/driver/sharp96.h b/include/driver/sharp96.h
new file mode 100644
index 0000000..cd99ad7
--- /dev/null
+++ b/include/driver/sharp96.h
@@ -0,0 +1,24 @@
+#ifndef SHARP96_H
+#define SHARP96_H
+
+class Sharp96 {
+ private:
+ Sharp96(const Sharp96 &copy);
+ unsigned char txbuf[2];
+ unsigned char vcom;
+ unsigned char swap_bits(unsigned char byte);
+
+ public:
+ Sharp96() : vcom(0) {}
+
+ void setup();
+ void powerOn();
+ void powerOff();
+ void clear();
+ void writeLine(unsigned char line_no, unsigned char* data);
+ void toggleVCOM();
+};
+
+extern Sharp96 sharp96;
+
+#endif