aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2016-07-07 12:45:34 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2016-07-07 12:45:34 +0300
commit9772e697a04472f3c710376bfb2919ec2c3672a3 (patch)
treee41f205830b1632b67baf4fb0d4fe8c439f85e71 /keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd
parent70797bb8f21c72cba15b314b2d0a6684bfedc369 (diff)
downloadqmk_firmware-9772e697a04472f3c710376bfb2919ec2c3672a3.tar.gz
Add Infinity Ergodox display drivers
Diffstat (limited to 'keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd')
-rw-r--r--keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/driver.mk2
-rw-r--r--keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/emulator_lcd.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/driver.mk b/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/driver.mk
new file mode 100644
index 000000000..16c3f80f5
--- /dev/null
+++ b/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/driver.mk
@@ -0,0 +1,2 @@
+GFXINC += drivers/gdisp/emulator_lcd
+GFXSRC += drivers/gdisp/emulator_lcd/emulator_lcd.c
diff --git a/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/emulator_lcd.c b/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/emulator_lcd.c
new file mode 100644
index 000000000..babfe2b36
--- /dev/null
+++ b/keyboards/infinity_ergodox/drivers/gdisp/emulator_lcd/emulator_lcd.c
@@ -0,0 +1,10 @@
+#define GDISP_DRIVER_VMT GDISPVMT_EMULATOR_LCD_ERGODOX
+#define GDISP_HARDWARE_DRAWPIXEL TRUE
+#define GDISP_HARDWARE_PIXELREAD TRUE
+#define GDISP_HARDWARE_CONTROL TRUE
+#define GDISP_LLD_PIXELFORMAT GDISP_PIXELFORMAT_MONO
+#define GDISP_SCREEN_WIDTH 128
+#define GDISP_SCREEN_HEIGHT 32
+#define ROTATE_180_IS_FLIP
+
+#include "emulator/emulator_driver_impl.h"