summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-30 17:32:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-30 17:32:38 +0100
commit276c844964d5d39a767453b3709edf4379d57319 (patch)
tree38882becb9fd2a809f94fe81e4ba9178d5494256 /src
parentbdff4289c8d10f287f6b2ca562730b17b295c8dc (diff)
sharp96: writeLine: send vcom bit
Diffstat (limited to 'src')
-rw-r--r--src/driver/sharp96.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/sharp96.cc b/src/driver/sharp96.cc
index a4eba8a..92f32fa 100644
--- a/src/driver/sharp96.cc
+++ b/src/driver/sharp96.cc
@@ -61,7 +61,7 @@ void Sharp96::clear()
void Sharp96::writeLine(unsigned char line_no, unsigned char* data)
{
- txbuf[0] = CMD_WRITE_LINE | (CMD_WRITE_LINE * vcom);
+ txbuf[0] = CMD_WRITE_LINE | (CMD_TOGGLE_VCOM * vcom);
txbuf[1] = swap_bits(line_no + 1);
gpio.write(SHARP96_CS_PIN, 1);
spi.xmit(2, txbuf, 0, txbuf);