aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1351/SSD1351.h
blob: 67804c26959c8924227b280732e2009654ec2dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SSD1351_H
#define SSD1351_H

#define SSD1351_SET_COLUMN_ADDRESS              0x15
#define SSD1351_SET_ROW_ADDRESS                 0x75
#define SSD1351_WRITE_RAM                       0x5C
#define SSD1351_READ_RAM                        0x5D
#define SSD1351_SET_REMAP                       0xA0

#define SSD1351_SET_DISPLAY_START               0xA1
#define SSD1351_SET_DISPLAY_OFFSET              0xA2
#define SSD1351_SET_DISPLAY_MODE_ALL_OFF        0xA4
#define SSD1351_SET_DISPLAY_MODE_ALL_ON         0xA5
#define SSD1351_SET_DISPLAY_MODE_RESET          0xA6
#define SSD1351_SET_DISPLAY_MODE_INVERT         0xA7
#define SSD1351_SET_FUNCTION_SELECT             0xAB
#define SSD1351_SET_SLEEP_ON                    0xAE
#define SSD1351_SET_SLEEP_OFF                   0xAF
#define SSD1351_SET_RESET_PRECHARGE             0xB1

#define SSD1351_DISPLAY_ENHANCEMENT             0xB2
#define SSD1351_CLOCKDIV_OSCFREQ                0xB3
#define SSD1351_SET_VSL                         0xB4
#define SSD1351_SET_GPIO                        0xB5
#define SSD1351_SET_SECOND_PRECHARGE            0xB6

#define SSD1351_LUT_GRAYSCALE                   0xB8
#define SSD1351_USE_BUILTIN_LUT                 0xB9
#define SSD1351_SET_PRECHARGE                   0xBB
#define SSD1351_SET_VCOMH                       0xBE

#define SSD1351_SET_CONTRAST                    0xC1
#define SSD1351_MASTER_CONTRAST_CURRENT_CONTROL 0xC7
#define SSD1351_SET_MUX_RATIO                   0xCA
#define SSD1351_SET_COMMAND_LOCK                0xFD

#endif // SSD1351_H