SSD1306 OLED display driver  1.3.5
This library is developed to control SSD1306 i2c/spi OLED display
pcd8544_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 _PCD8544_COMMANDS_H_
24 #define _PCD8544_COMMANDS_H_
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
33 {
34  PCD8544_NOP = 0x00,
35 
36 // Regular functions
37  PCD8544_FUNCTIONSET = 0x20,
38  PCD8544_DISPLAYCONTROL = 0x08,
39  PCD8544_SETYADDR = 0x40,
40  PCD8544_SETXADDR = 0x80,
41 
42 // Extended functions
43  PCD8544_SETTEMP = 0x04,
44  PCD8544_SETBIAS = 0x10,
45  PCD8544_SETVOP = 0x80,
46 
47 };
48 
51 {
52  PCD8544_POWERDOWN = 0x04,
53  PCD8544_VERTICAL_ADDR_MODE = 0x02,
54  PCD8544_EXTENDEDINSTRUCTION = 0x01,
55 };
56 
59 {
60  PCD8544_DISPLAYBLANK = 0x0,
61  PCD8544_DISPLAYALLON = 0x1,
62  PCD8544_DISPLAYNORMAL = 0x4,
63  PCD8544_DISPLAYINVERTED = 0x5,
64 };
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 // ----------------------------------------------------------------------------
71 #endif // _PCD8544_COMMANDS_H_
EPcd8544DisplayMode
EPcd8544FunctionMode
ESsd1306Commands