From 276c844964d5d39a767453b3709edf4379d57319 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 30 Jan 2021 17:32:38 +0100 Subject: sharp96: writeLine: send vcom bit --- src/driver/sharp96.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver') 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); -- cgit v1.2.3