changeset 29:60bcd401363a

lcdtest/lcdphone: forgot to invert the pixel values from R2D
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 May 2018 22:53:18 +0000
parents de3d3cfcbb35
children 56780c191b58
files lcdtest/phonemain.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lcdtest/phonemain.c	Sun May 27 22:26:58 2018 +0000
+++ b/lcdtest/phonemain.c	Sun May 27 22:53:18 2018 +0000
@@ -108,11 +108,11 @@
 			/* upper byte */
 			*dp++ = 0x92;
 			*dp++ = 0;	/* dummy addr */
-			*dp++ = sp[1];
+			*dp++ = sp[1] ^ 0xFF;
 			/* lower byte */
 			*dp++ = 0x92;
 			*dp++ = 0;	/* dummy addr */
-			*dp++ = sp[0];
+			*dp++ = sp[0] ^ 0xFF;
 			sp += 2;
 		}
 		do_ftdi_write(ftbuf, sizeof ftbuf);