aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-07-09 00:41:15 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-07-29 20:48:20 +0300
commite01b4c3fd9a7b66276ffd22dcac25d569d7bb7ff (patch)
treebb5dcd6b71353aebfd93da01d740b527c4cdca82 /keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h
parentb0376687f4cc2dc0b5ffd89f3bcb33c873b1f4d3 (diff)
downloadfirmware-e01b4c3fd9a7b66276ffd22dcac25d569d7bb7ff.tar.gz
firmware-e01b4c3fd9a7b66276ffd22dcac25d569d7bb7ff.tar.bz2
firmware-e01b4c3fd9a7b66276ffd22dcac25d569d7bb7ff.zip
Most ergodox keymaps compiles on Infinity
There are linker errors due to missing led funcitonality though
Diffstat (limited to 'keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h')
-rw-r--r--keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h b/keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h
new file mode 100644
index 000000000..48636b33d
--- /dev/null
+++ b/keyboards/ergodox/drivers/gdisp/st7565ergodox/st7565.h
@@ -0,0 +1,37 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://ugfx.org/license.html
+ */
+
+#ifndef _ST7565_H
+#define _ST7565_H
+
+#define ST7565_CONTRAST 0x81
+#define ST7565_ALLON_NORMAL 0xA4
+#define ST7565_ALLON 0xA5
+#define ST7565_POSITIVE_DISPLAY 0xA6
+#define ST7565_INVERT_DISPLAY 0xA7
+#define ST7565_DISPLAY_OFF 0xAE
+#define ST7565_DISPLAY_ON 0xAF
+
+#define ST7565_LCD_BIAS_7 0xA3
+#define ST7565_LCD_BIAS_9 0xA2
+
+#define ST7565_ADC_NORMAL 0xA0
+#define ST7565_ADC_REVERSE 0xA1
+
+#define ST7565_COM_SCAN_INC 0xC0
+#define ST7565_COM_SCAN_DEC 0xC8
+
+#define ST7565_START_LINE 0x40
+#define ST7565_PAGE 0xB0
+#define ST7565_COLUMN_MSB 0x10
+#define ST7565_COLUMN_LSB 0x00
+#define ST7565_RMW 0xE0
+
+#define ST7565_RESISTOR_RATIO 0x20
+#define ST7565_POWER_CONTROL 0x28
+
+#endif /* _ST7565_H */