diff src/cs/drivers/drv_app/r2d/lcds/c139/colors.h @ 0:b6a5e36de839

src/cs: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:39:26 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/drivers/drv_app/r2d/lcds/c139/colors.h	Sun Jul 15 04:39:26 2018 +0000
@@ -0,0 +1,16 @@
+/*
+ * TI's BMI code does not seem to have an existing configuration for small
+ * color displays, only large color, large mono and small mono - hence in the
+ * present configuration we are telling TI's code that we have a mono display.
+ * But the real LCD on the C139 is 16-bit color.  Here we define the physical
+ * color values to which TI's black and white will be mapped.
+ *
+ * We are also pretending to be the 84x48 pix LCD on TI's C-Sample, hence we
+ * are displaying a 84x48 pix UI on a physical 96x64 pix LCD.  We center the
+ * virtual display in the physical one, and the border color is defined here
+ * as well.
+ */
+
+#define	LCD16_COLOR_BLACK	0x0000
+#define	LCD16_COLOR_WHITE	0xFFFF
+#define	LCD16_COLOR_BORDER	0x5555