35 extern uint16_t ssd1306_color;
36 extern uint8_t s_ssd1306_invertByte;
37 extern lcduint_t ssd1306_cursorX;
38 extern lcduint_t ssd1306_cursorY;
40 #ifdef CONFIG_SSD1306_UNICODE_ENABLE 41 extern uint8_t g_ssd1306_unicode;
46 ssd1306_color = color;
62 uint8_t blackColor = s_ssd1306_invertByte ? ssd1306_color : 0x00;
63 uint8_t color = s_ssd1306_invertByte ? 0x00 : ssd1306_color;
70 uint8_t data = *bitmap;
90 static void ssd1306_drawBufferPitch8(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, lcduint_t pitch,
const uint8_t *data)
108 ssd1306_drawBufferPitch8( x, y, w, h, w, data );
113 ssd1306_drawBufferPitch8( x, y, w, h, pitch, data );
170 lcduint_t dx = x1 > x2 ? (x1 - x2): (x2 - x1);
171 lcduint_t dy = y1 > y2 ? (y1 - y2): (y2 - y1);
186 x1 < x2 ? x1++: x1--;
204 if (y1 < y2) y1++;
else y1--;
230 uint16_t count = (x2 - x1 + 1) * (y2 - y1 + 1);
241 uint8_t blackColor = s_ssd1306_invertByte ? ssd1306_color : 0x00;
242 uint8_t color = s_ssd1306_invertByte ? 0x00 : ssd1306_color;
249 uint8_t data = pgm_read_byte( bitmap );
272 uint32_t count = (w) * (h);
284 uint32_t count = w * h;
300 uint16_t unicode = ssd1306_unicode16FromUtf8(c);
319 uint8_t gotoNewLine = 1;
323 unicode = ssd1306_unicode16FromUtf8(ch);
331 ssd1306_cursorY += s_fixedFont.
h.
height;
344 uint8_t color = ssd1306_color;
345 ssd1306_color = s_ssd1306_invertByte ? color : 0x00;
347 ssd1306_cursorX + char_info.
width + char_info.
spacing - 1,
348 ssd1306_cursorY + s_fixedFont.
h.
height - 1 );
349 ssd1306_color = color;
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(* 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_drawBufferEx8(lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, lcduint_t pitch, const uint8_t *data)
void ssd1306_putPixel8(lcdint_t x, lcdint_t y)
void ssd1306_putColorPixel8(lcdint_t x, lcdint_t y, uint8_t color)
ssd1306_lcd_t ssd1306_lcd
void ssd1306_drawHLine8(lcdint_t x1, lcdint_t y1, lcdint_t x2)
void ssd1306_setRgbColor8(uint8_t r, uint8_t g, uint8_t b)
Sets default color.
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)
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_getCharBitmap(uint16_t unicode, SCharInfo *info)
returns char data for currently set (active) font.
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_MORE_CHARS_REQUIRED
#define ssd1306_swap_data(a, b, type)
void ssd1306_fillScreen8(uint8_t fill_Data)