SSD1306 I2C Display Driver  1.2.2
This library is developed to control SSD1306 I2C OLED Display
ssd1306_commands.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2017 Alexey Dynda
3 
4  This file is part of SSD1306 library.
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
23 #ifndef _SSD1306_COMMANDS_H_
24 #define _SSD1306_COMMANDS_H_
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
33 {
34  SSD1306_DEFAULT_ADDRESS = 0x78,
35  SSD1306_SETCONTRAST = 0x81,
36  SSD1306_DISPLAYALLON_RESUME = 0xA4,
37  SSD1306_DISPLAYALLON = 0xA5,
38  SSD1306_NORMALDISPLAY = 0xA6,
39  SSD1306_INVERTDISPLAY = 0xA7,
40  SSD1306_DISPLAYOFF = 0xAE,
41  SSD1306_DISPLAYON = 0xAF,
42  SSD1306_SETDISPLAYOFFSET = 0xD3,
43  SSD1306_SETCOMPINS = 0xDA,
44  SSD1306_SETVCOMDETECT = 0xDB,
45  SSD1306_SETDISPLAYCLOCKDIV = 0xD5,
46  SSD1306_SETPRECHARGE = 0xD9,
47  SSD1306_SETMULTIPLEX = 0xA8,
48  SSD1306_SETLOWCOLUMN = 0x00,
49  SSD1306_SETHIGHCOLUMN = 0x10,
50  SSD1306_SETSTARTLINE = 0x40,
51 
52  SSD1306_MEMORYMODE = 0x20,
53 
54 
55  SSD1306_COLUMNADDR = 0x21,
56  SSD1306_PAGEADDR = 0x22,
57  SSD1306_COMSCANINC = 0xC0,
58  SSD1306_COMSCANDIR = 0xC8,
59  SSD1306_SEGREMAP = 0xA0,
60  SSD1306_CHARGEPUMP = 0x8D,
61  SSD1306_SWITCHCAPVCC = 0x02,
62  SSD1306_NOP = 0xE3,
63 };
64 
67 {
68  HORIZONTAL_ADDRESSING_MODE = 0x00,
69  VERTICAL_ADDRESSING_MODE = 0x01,
70  PAGE_ADDRESSING_MODE = 0x02,
71 };
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 // ----------------------------------------------------------------------------
78 #endif // _SSD1306_COMMANDS_H_
ESsd1306MemoryMode
ESsd1306Commands