diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-07-29 22:32:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-29 22:32:27 -0400 |
commit | 063983639d21982a1df0ed1e33becc8027661b42 (patch) | |
tree | bc67ebda76151ef4a868ccaf90661355e84feccf /keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/st7565.h | |
parent | 30003d48f9a04676b81bf2980a235106ec7886b0 (diff) | |
parent | 566c79554ebd6e17d161ad488ce807ea7e8b24db (diff) |
Merge pull request #503 from fredizzimo/ergodox_subproject
Add both Ergodox EZ and Infinity Ergodox as sub-projects of Ergodox
Diffstat (limited to 'keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/st7565.h')
-rw-r--r-- | keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/st7565.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/st7565.h b/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/st7565.h new file mode 100644 index 0000000000..48636b33d6 --- /dev/null +++ b/keyboards/ergodox/infinity/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 */ |