mirror of
https://github.com/nopnop2002/esp-idf-ssd1306.git
synced 2024-10-03 18:18:47 -04:00
changed from ssd1306_bitmaps to _ssd1306_bitmaps
This commit is contained in:
parent
7c8a3527a9
commit
f3c1c863f9
@ -110,6 +110,7 @@ static void render_text(SSD1306_t * dev, int xpos, int ypos, int threshold, char
|
||||
for (int iy = 0; iy < BITMAP_HEIGHT; iy++) {
|
||||
for (int ix = 0; ix < width; ix++) {
|
||||
int val = s_bitmap[iy][ix];
|
||||
ESP_LOGD(tag, "val=%d", val);
|
||||
if (val > 128) {
|
||||
putchar('#');
|
||||
} else if (val > 64) {
|
||||
@ -135,9 +136,10 @@ static void render_text(SSD1306_t * dev, int xpos, int ypos, int threshold, char
|
||||
bitmap[i] = ssd1306_rotate_byte(bitmap[i]);
|
||||
}
|
||||
//ESP_LOG_BUFFER_HEXDUMP(tag, bitmap, BITMAP_HEIGHT, ESP_LOG_INFO);
|
||||
ssd1306_bitmaps(dev, xpos, ypos, bitmap, 8, BITMAP_HEIGHT, false);
|
||||
_ssd1306_bitmaps(dev, xpos, ypos, bitmap, 8, BITMAP_HEIGHT, false);
|
||||
xpos += slot->advance.x / 64;
|
||||
}
|
||||
ssd1306_show_buffer(dev);
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
|
Loading…
Reference in New Issue
Block a user