diff options
author | That-Canadian <poole.chris.11@gmail.com> | 2017-07-10 16:53:49 -0400 |
---|---|---|
committer | That-Canadian <poole.chris.11@gmail.com> | 2017-07-10 16:53:49 -0400 |
commit | 55ed97af1e2fb183d2b6c34bc8659a03cbda090c (patch) | |
tree | a3950f5dbe7d12f29c2b9a77d49b4e807af87ae6 /drivers/ugfx/gdisp/st7565/st7565.h | |
parent | 1fdf3c84fe2bb10698bf528a9726aab5af12ca6d (diff) | |
parent | 07bf8522ca23a7665852bb9defff0749c76f5e91 (diff) |
Merge branch 'master' into minidox
Diffstat (limited to 'drivers/ugfx/gdisp/st7565/st7565.h')
-rw-r--r-- | drivers/ugfx/gdisp/st7565/st7565.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/ugfx/gdisp/st7565/st7565.h b/drivers/ugfx/gdisp/st7565/st7565.h new file mode 100644 index 0000000000..24924ff050 --- /dev/null +++ b/drivers/ugfx/gdisp/st7565/st7565.h @@ -0,0 +1,39 @@ +/* + * 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 + +#define ST7565_RESET 0xE2 + +#endif /* _ST7565_H */ |