From f3c1c863f9a413008c2c4fc29f6e1a8f81d60032 Mon Sep 17 00:00:00 2001 From: nopnop2002 Date: Tue, 10 Sep 2024 17:31:04 +0900 Subject: [PATCH] changed from ssd1306_bitmaps to _ssd1306_bitmaps --- FreeTypeDemo/main/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FreeTypeDemo/main/main.c b/FreeTypeDemo/main/main.c index a45a053..1c9c419 100644 --- a/FreeTypeDemo/main/main.c +++ b/FreeTypeDemo/main/main.c @@ -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)