diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-30 17:32:38 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-30 17:32:38 +0100 |
commit | 276c844964d5d39a767453b3709edf4379d57319 (patch) | |
tree | 38882becb9fd2a809f94fe81e4ba9178d5494256 /src | |
parent | bdff4289c8d10f287f6b2ca562730b17b295c8dc (diff) |
sharp96: writeLine: send vcom bit
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/sharp96.cc | 2 |
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); |