SSD1306 OLED display driver  1.8.2
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
ssd1351_commands.h
Go to the documentation of this file.
1 /*
2  MIT License
3 
4  Copyright (c) 2018, Alexey Dynda
5 
6  Permission is hereby granted, free of charge, to any person obtaining a copy
7  of this software and associated documentation files (the "Software"), to deal
8  in the Software without restriction, including without limitation the rights
9  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  copies of the Software, and to permit persons to whom the Software is
11  furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in all
14  copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  SOFTWARE.
23 */
28 #ifndef _SSD1351_COMMANDS_H_
29 #define _SSD1351_COMMANDS_H_
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 
38 {
39  SSD1351_COLUMNADDR = 0x15,
40  SSD1331_WRITEDATA = 0x5C,
41  SSD1351_ROWADDR = 0x75,
42  SSD1351_SEGREMAP = 0xA0,
43  SSD1351_SETSTARTLINE = 0xA1,
44  SSD1351_SETDISPLAYOFFSET = 0xA2,
45  SSD1351_SETFUNCTION = 0xAB,
46  SSD1351_NOP = 0xAD,
47  SSD1351_ALLOFF = 0xA4,
48  SSD1351_DISPLAYON = 0xA5,
49  SSD1351_NORMALDISPLAY = 0xA6,
50  SSD1351_DISPLAYINVERSE = 0xA7,
51  SSD1351_SLEEP_ON = 0xAE,
52  SSD1351_SLEEP_OFF = 0xAF,
53  SSD1351_NOP2 = 0xB0,
54  SSD1351_SETPRECHARGE = 0xB1,
55  SSD1351_CLOCKDIV = 0xB3,
56  SSD1351_EXTVSL = 0xB4,
57  SSD1351_SETGPIO = 0xB5,
58  SSD1351_PRECHARGESECOND = 0xB6,
59  SSD1351_PRECHARGELEVEL = 0xBB,
60  SSD1351_VCOMH = 0xBE,
61  SSD1351_CONTRAST = 0xC1,
62  SSD1351_MASTERCURRENT = 0xC7,
63  SSD1351_SETMULTIPLEX = 0xCA,
64  SSD1351_PRECHARGEA = 0x8A,
65  SSD1351_PRECHARGEB = 0x8B,
66  SSD1351_NOP3 = 0xE3,
67  SSD1351_UNLOCK = 0xFD,
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 // ----------------------------------------------------------------------------
75 #endif // _SSD1351_COMMANDS_H_
ESsd1351Commands