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

ssd1306_16bit.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 */
28 #ifndef _SSD1306_16BIT_H_
29 #define _SSD1306_16BIT_H_
30
31 #include "nano_gfx_types.h"
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
38 // DIRECT GRAPH FUNCTIONS
40
64 void ssd1306_setRgbColor16(uint8_t r, uint8_t g, uint8_t b);
65
76 void ssd1306_drawBufferFast16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data);
77
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 static inline void ssd1331_drawBufferFast16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
80 {
81 ssd1306_drawBufferFast16(x, y, w, h, data);
82 }
83 #endif
84
97 void ssd1306_drawBufferEx16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, lcduint_t pitch, const uint8_t *data);
98
109 void ssd1306_drawMonoBuffer16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap);
110
116 void ssd1306_fillScreen16(uint16_t fill_Data);
117
121 void ssd1306_clearScreen16(void);
122
131 void ssd1306_putPixel16(lcdint_t x, lcdint_t y);
132
140 void ssd1306_putColorPixel16(lcdint_t x, lcdint_t y, uint16_t color);
141
151 void ssd1306_drawVLine16(lcdint_t x1, lcdint_t y1, lcdint_t y2);
152
162 void ssd1306_drawHLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2);
163
176 void ssd1306_drawLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2);
177
190 void ssd1306_drawRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2);
191
204 void ssd1306_fillRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2);
205
218 void ssd1306_drawMonoBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap);
219
230 void ssd1306_drawBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap);
231
240 void ssd1306_clearBlock16(uint8_t x, uint8_t y, uint8_t w, uint8_t h);
241
248 void ssd1306_setCursor16(lcduint_t x, lcduint_t y);
249
258 void ssd1306_printChar16(uint8_t c);
259
269 size_t ssd1306_write16(uint8_t ch);
270
280 size_t ssd1306_print16(const char ch[]);
281
293 uint8_t ssd1306_printFixed16(lcdint_t x, lcdint_t y, const char *ch, EFontStyle style);
294
299 #ifdef __cplusplus
300 }
301 #endif
302
303 #endif // _SSD1306_16BIT_H_
ssd1306_printChar16
void ssd1306_printChar16(uint8_t c)
Definition: ssd1306_16bit.c:287
ssd1306_fillScreen16
void ssd1306_fillScreen16(uint16_t fill_Data)
Definition: ssd1306_16bit.c:105
ssd1306_drawBitmap16
void ssd1306_drawBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
Definition: ssd1306_16bit.c:258
ssd1306_printFixed16
uint8_t ssd1306_printFixed16(lcdint_t x, lcdint_t y, const char *ch, EFontStyle style)
Definition: ssd1306_16bit.c:359
ssd1306_drawRect16
void ssd1306_drawRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
Definition: ssd1306_16bit.c:200
ssd1306_putColorPixel16
void ssd1306_putColorPixel16(lcdint_t x, lcdint_t y, uint16_t color)
Definition: ssd1306_16bit.c:128
ssd1306_drawMonoBuffer16
void ssd1306_drawMonoBuffer16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
Definition: ssd1306_16bit.c:74
ssd1306_setCursor16
void ssd1306_setCursor16(lcduint_t x, lcduint_t y)
Definition: ssd1306_16bit.c:281
ssd1306_clearBlock16
void ssd1306_clearBlock16(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
Definition: ssd1306_16bit.c:270
ssd1306_setRgbColor16
void ssd1306_setRgbColor16(uint8_t r, uint8_t g, uint8_t b)
Sets default color.
Definition: ssd1306_16bit.c:40
ssd1306_drawBufferFast16
void ssd1306_drawBufferFast16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
Definition: ssd1306_16bit.c:61
ssd1306_fillRect16
void ssd1306_fillRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
Definition: ssd1306_16bit.c:208
ssd1306_putPixel16
void ssd1306_putPixel16(lcdint_t x, lcdint_t y)
Definition: ssd1306_16bit.c:121
nano_gfx_types.h
ssd1306_write16
size_t ssd1306_write16(uint8_t ch)
Prints single character to display at current cursor position.
Definition: ssd1306_16bit.c:300
ssd1306_print16
size_t ssd1306_print16(const char ch[])
Prints null-terminated string to display at current cursor position.
Definition: ssd1306_16bit.c:348
ssd1306_drawHLine16
void ssd1306_drawHLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2)
Definition: ssd1306_16bit.c:146
ssd1306_clearScreen16
void ssd1306_clearScreen16(void)
Definition: ssd1306_16bit.c:116
ssd1306_drawLine16
void ssd1306_drawLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
Definition: ssd1306_16bit.c:157
ssd1306_drawMonoBitmap16
void ssd1306_drawMonoBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
Definition: ssd1306_16bit.c:227
EFontStyle
EFontStyle
Definition: nano_gfx_types.h:69
ssd1306_drawBufferEx16
void ssd1306_drawBufferEx16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, lcduint_t pitch, const uint8_t *data)
Definition: ssd1306_16bit.c:66
ssd1306_drawVLine16
void ssd1306_drawVLine16(lcdint_t x1, lcdint_t y1, lcdint_t y2)
Definition: ssd1306_16bit.c:135