aboutsummaryrefslogtreecommitdiff
path: root/modules/ls0xx/ls0xx_opcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ls0xx/ls0xx_opcodes.h')
-rw-r--r--modules/ls0xx/ls0xx_opcodes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/ls0xx/ls0xx_opcodes.h b/modules/ls0xx/ls0xx_opcodes.h
new file mode 100644
index 0000000..2c3928a
--- /dev/null
+++ b/modules/ls0xx/ls0xx_opcodes.h
@@ -0,0 +1,9 @@
+// Copyright Pablo Martinez (@elpekenin) <[email protected]>
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// NOTE: written LSB first as the display expects them
+#define LS0XX_WRITE 0x80 // Start sending framebuffer
+#define LS0XX_VCOM 0x40 // Set VCOM high
+#define LS0XX_CLEAR 0x20 // Clear