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_
void ssd1306_printChar16(uint8_t c)
void ssd1306_fillScreen16(uint16_t fill_Data)
void ssd1306_drawBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
uint8_t ssd1306_printFixed16(lcdint_t x, lcdint_t y, const char *ch, EFontStyle style)
void ssd1306_drawRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
void ssd1306_putColorPixel16(lcdint_t x, lcdint_t y, uint16_t color)
void ssd1306_drawMonoBuffer16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
Definition: ssd1306_16bit.c:74
void ssd1306_setCursor16(lcduint_t x, lcduint_t y)
void ssd1306_clearBlock16(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
void ssd1306_setRgbColor16(uint8_t r, uint8_t g, uint8_t b)
Sets default color.
Definition: ssd1306_16bit.c:40
void ssd1306_drawBufferFast16(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
Definition: ssd1306_16bit.c:61
void ssd1306_fillRect16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
void ssd1306_putPixel16(lcdint_t x, lcdint_t y)
size_t ssd1306_write16(uint8_t ch)
Prints single character to display at current cursor position.
size_t ssd1306_print16(const char ch[])
Prints null-terminated string to display at current cursor position.
void ssd1306_drawHLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2)
void ssd1306_clearScreen16(void)
void ssd1306_drawLine16(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
void ssd1306_drawMonoBitmap16(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
EFontStyle
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
void ssd1306_drawVLine16(lcdint_t x1, lcdint_t y1, lcdint_t y2)