]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/infinity_ergodox/drivers/gdisp/st7565ergodox/st7565.h
48636b33d63fa913ce163be686bfc93825b91322
[qmk_firmware.git] / keyboards / infinity_ergodox / drivers / gdisp / st7565ergodox / st7565.h
1 /*
2  * This file is subject to the terms of the GFX License. If a copy of
3  * the license was not distributed with this file, you can obtain one at:
4  *
5  *              http://ugfx.org/license.html
6  */
7
8 #ifndef _ST7565_H
9 #define _ST7565_H
10
11 #define ST7565_CONTRAST             0x81
12 #define ST7565_ALLON_NORMAL         0xA4
13 #define ST7565_ALLON                0xA5
14 #define ST7565_POSITIVE_DISPLAY     0xA6
15 #define ST7565_INVERT_DISPLAY       0xA7
16 #define ST7565_DISPLAY_OFF          0xAE
17 #define ST7565_DISPLAY_ON           0xAF
18
19 #define ST7565_LCD_BIAS_7           0xA3
20 #define ST7565_LCD_BIAS_9           0xA2
21
22 #define ST7565_ADC_NORMAL           0xA0
23 #define ST7565_ADC_REVERSE          0xA1
24
25 #define ST7565_COM_SCAN_INC         0xC0
26 #define ST7565_COM_SCAN_DEC         0xC8
27
28 #define ST7565_START_LINE           0x40
29 #define ST7565_PAGE                 0xB0
30 #define ST7565_COLUMN_MSB           0x10
31 #define ST7565_COLUMN_LSB           0x00
32 #define ST7565_RMW                  0xE0
33
34 #define ST7565_RESISTOR_RATIO       0x20
35 #define ST7565_POWER_CONTROL        0x28
36
37 #endif /* _ST7565_H */