SSD1306 OLED display driver  1.3.5
This library is developed to control SSD1306 i2c/spi 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_SETLOWCOLUMN = 0x00,
35  SSD1306_SETHIGHCOLUMN = 0x10,
36  SSD1306_MEMORYMODE = 0x20,
37  SSD1306_COLUMNADDR = 0x21,
38  SSD1306_PAGEADDR = 0x22,
39  SSD1306_SETSTARTLINE = 0x40,
40  SSD1306_DEFAULT_ADDRESS = 0x78,
41  SSD1306_SETCONTRAST = 0x81,
42  SSD1306_CHARGEPUMP = 0x8D,
43  SSD1306_SEGREMAP = 0xA0,
44  SSD1306_DISPLAYALLON_RESUME = 0xA4,
45  SSD1306_DISPLAYALLON = 0xA5,
46  SSD1306_NORMALDISPLAY = 0xA6,
47  SSD1306_INVERTDISPLAY = 0xA7,
48  SSD1306_SETMULTIPLEX = 0xA8,
49  SSD1306_DISPLAYOFF = 0xAE,
50  SSD1306_DISPLAYON = 0xAF,
51  SSD1306_SETPAGE = 0xB0,
52  SSD1306_COMSCANINC = 0xC0,
53  SSD1306_COMSCANDEC = 0xC8,
54  SSD1306_SETDISPLAYOFFSET = 0xD3,
55  SSD1306_SETDISPLAYCLOCKDIV = 0xD5,
56  SSD1306_SETPRECHARGE = 0xD9,
57  SSD1306_SETCOMPINS = 0xDA,
58  SSD1306_SETVCOMDETECT = 0xDB,
59 
60  SSD1306_SWITCHCAPVCC = 0x02,
61  SSD1306_NOP = 0xE3,
62 };
63 
66 {
67  HORIZONTAL_ADDRESSING_MODE = 0x00,
68  VERTICAL_ADDRESSING_MODE = 0x01,
69  PAGE_ADDRESSING_MODE = 0x02,
70 };
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 // ----------------------------------------------------------------------------
77 #endif // _SSD1306_COMMANDS_H_
ESsd1306MemoryMode
ESsd1306Commands