SSD1306 OLED display driver 1.8.2 This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays

oled_ssd1331.h
Go to the documentation of this file.
1 /*
2 MIT License
3
4 Copyright (c) 2018-2019, 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 */
29 #ifndef _OLED_SSD1331_H_
30 #define _OLED_SSD1331_H_
31
32 #include "ssd1306_hal/io.h"
33 #include "lcd/lcd_common.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
51 void ssd1331_setRotation(uint8_t rotation);
52
75 void ssd1331_setMode(lcd_mode_t mode);
76
85 void ssd1331_96x64_init(void);
86
95 void ssd1331_96x64_spi_init(int8_t rstPin, int8_t cesPin, int8_t dcPin);
96
105 void ssd1331_96x64_spi_init16(int8_t rstPin, int8_t cesPin, int8_t dcPin);
106
117 void ssd1331_drawLine(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint16_t color);
118
135 void ssd1331_copyBlock(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t newLeft, uint8_t newTop);
136
141 #ifdef __cplusplus
142 }
143 #endif
144
145 // ----------------------------------------------------------------------------
146 #endif // _OLED_SSD1331_H_
lcd_common.h
ssd1331_setMode
void ssd1331_setMode(lcd_mode_t mode)
Sets GDRAM autoincrement mode.
Definition: oled_ssd1331.c:112
io.h
lcd_mode_t
lcd_mode_t
Definition: lcd_common.h:69
ssd1331_drawLine
void ssd1331_drawLine(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint16_t color)
Definition: oled_ssd1331.c:259
ssd1331_copyBlock
void ssd1331_copyBlock(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t newLeft, uint8_t newTop)
Definition: oled_ssd1331.c:274
ssd1331_setRotation
void ssd1331_setRotation(uint8_t rotation)
Sets screen orientation (rotation)
Definition: oled_ssd1331.c:130
ssd1331_96x64_spi_init
void ssd1331_96x64_spi_init(int8_t rstPin, int8_t cesPin, int8_t dcPin)
Inits 96x64 RGB OLED display over spi in 8-bit mode (based on SSD1331 controller).
Definition: oled_ssd1331.c:239
ssd1331_96x64_init
void ssd1331_96x64_init(void)
Inits 96x64 RGB OLED display (based on SSD1331 controller).
Definition: oled_ssd1331.c:201
ssd1331_96x64_spi_init16
void ssd1331_96x64_spi_init16(int8_t rstPin, int8_t cesPin, int8_t dcPin)
Inits 96x64 RGB OLED display over spi in 16-bit mode (based on SSD1331 controller).
Definition: oled_ssd1331.c:249