34 extern uint16_t ssd1306_color;
35 extern uint8_t s_ssd1306_invertByte;
36 extern lcduint_t ssd1306_cursorX;
37 extern lcduint_t ssd1306_cursorY;
39 #ifdef CONFIG_SSD1306_UNICODE_ENABLE 40 extern uint8_t g_ssd1306_unicode;
45 ssd1306_color = color;
56 uint8_t blackColor = s_ssd1306_invertByte ? ssd1306_color : 0x00;
57 uint8_t color = s_ssd1306_invertByte ? 0x00 : ssd1306_color;
64 uint8_t data = *bitmap;
86 uint16_t count = w * h;
143 lcduint_t dx = x1 > x2 ? (x1 - x2): (x2 - x1);
144 lcduint_t dy = y1 > y2 ? (y1 - y2): (y2 - y1);
159 x1 < x2 ? x1++: x1--;
177 if (y1 < y2) y1++;
else y1--;
203 uint16_t count = (x2 - x1 + 1) * (y2 - y1 + 1);
214 uint8_t blackColor = s_ssd1306_invertByte ? ssd1306_color : 0x00;
215 uint8_t color = s_ssd1306_invertByte ? 0x00 : ssd1306_color;
222 uint8_t data = pgm_read_byte( bitmap );
245 uint16_t count = (w) * (h);
257 uint16_t count = w * h;
273 uint16_t unicode = ssd1306_unicode16FromUtf8(c);
305 uint16_t unicode = ssd1306_unicode16FromUtf8(ch);
void ssd1306_drawMonoBuffer8(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
void ssd1306_setCursor8(lcduint_t x, lcduint_t y)
void ssd1306_drawRect8(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
uint8_t ssd1306_printFixed8(lcdint_t x, lcdint_t y, const char *ch, EFontStyle style)
uint8_t height
char height in pixels
void ssd1306_drawVLine8(lcdint_t x1, lcdint_t y1, lcdint_t y2)
void ssd1306_printChar8(uint8_t c)
void ssd1306_setColor(uint16_t color)
Sets default color, generated by RGB_COLOR8 or RGB_COLOR16 macros.
void ssd1306_drawLine8(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
void ssd1306_clearBlock8(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
#define RGB_COLOR8(r, g, b)
void(* set_block)(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
void ssd1306_getCharBitmap(uint16_t ch, SCharInfo *info)
returns char data for currently set (active) font.
void(* send_pixels8)(uint8_t data)
Sends RGB pixel encoded in 3-3-2 format to OLED driver. Sends RGB pixel encoded in 3-3-2 format to OL...
void ssd1306_setRgbColor(uint8_t r, uint8_t g, uint8_t b)
Sets default color.
void ssd1306_putPixel8(lcdint_t x, lcdint_t y)
ssd1306_lcd_t ssd1306_lcd
void ssd1306_drawHLine8(lcdint_t x1, lcdint_t y1, lcdint_t x2)
ssd1306_interface_t ssd1306_intf
uint8_t width
char width in pixels
size_t ssd1306_print8(const char ch[])
Prints null-terminated string to display at current cursor position.
SFixedFontInfo s_fixedFont
SFontHeaderRecord h
record, containing information on font
const uint8_t * glyph
char data, located in progmem.
void ssd1306_drawBufferFast8(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
#define SSD1306_MORE_CHARS_REQUIRED
void ssd1306_clearScreen8(void)
void ssd1306_drawBitmap8(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
uint8_t spacing
additional spaces after char in pixels
size_t ssd1306_write8(uint8_t ch)
Prints single character to display at current cursor position.
void ssd1306_drawMonoBitmap8(lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
void ssd1306_fillRect8(lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
#define ssd1306_swap_data(a, b, type)
void ssd1306_fillScreen8(uint8_t fill_Data)