mirror of
https://github.com/nopnop2002/esp-idf-ssd1306.git
synced 2024-10-03 18:18:47 -04:00
added _ssd1306_bitmaps function
This commit is contained in:
parent
262fc48913
commit
7c8a3527a9
@ -410,7 +410,7 @@ void ssd1306_wrap_arround(SSD1306_t * dev, ssd1306_scroll_type_t scroll, int sta
|
||||
|
||||
}
|
||||
|
||||
void ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int width, int height, bool invert)
|
||||
void _ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int width, int height, bool invert)
|
||||
{
|
||||
if ( (width % 8) != 0) {
|
||||
ESP_LOGE(TAG, "width must be a multiple of 8");
|
||||
@ -461,6 +461,13 @@ void ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int
|
||||
ssd1306_dump_page(dev, page, _seg);
|
||||
}
|
||||
#endif
|
||||
//ssd1306_show_buffer(dev);
|
||||
}
|
||||
|
||||
|
||||
void ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int width, int height, bool invert)
|
||||
{
|
||||
_ssd1306_bitmaps(dev, xpos, ypos, bitmap, width, height, invert);
|
||||
ssd1306_show_buffer(dev);
|
||||
}
|
||||
|
||||
|
@ -129,6 +129,7 @@ void ssd1306_scroll_text(SSD1306_t * dev, char * text, int text_len, bool invert
|
||||
void ssd1306_scroll_clear(SSD1306_t * dev);
|
||||
void ssd1306_hardware_scroll(SSD1306_t * dev, ssd1306_scroll_type_t scroll);
|
||||
void ssd1306_wrap_arround(SSD1306_t * dev, ssd1306_scroll_type_t scroll, int start, int end, int8_t delay);
|
||||
void _ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int width, int height, bool invert);
|
||||
void ssd1306_bitmaps(SSD1306_t * dev, int xpos, int ypos, uint8_t * bitmap, int width, int height, bool invert);
|
||||
void _ssd1306_pixel(SSD1306_t * dev, int xpos, int ypos, bool invert);
|
||||
void _ssd1306_line(SSD1306_t * dev, int x1, int y1, int x2, int y2, bool invert);
|
||||
|
Loading…
Reference in New Issue
Block a user