lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
657 stars 125 forks source link

custom_font_unicode display problem #56

Closed choujayyl closed 5 years ago

choujayyl commented 5 years ago

Please provide the following information:

library version

 master

LCD display type

 ssd1306  128x32 i2c

Steps to reproduce the issue

  run demo custom_font_unicode

Expected behavior

 `    // First variant of usage: using unicodes with standard ascii font
ssd1306_setFixedFont( ssd1306xled_font6x8 );
ssd1306_setSecondaryFont( g_customUnicodeFont_6x8 );
ssd1306_printFixed (0,  8,  "Ascii + Ää", STYLE_NORMAL );

// Second variant of usage: without standard ascii font
ssd1306_setFixedFont( g_customUnicodeFont_6x8 );
ssd1306_printFixed (0,  16,  "ÄäÄäÄä", STYLE_NORMAL );`

Actual behavior

image

lexus2k commented 5 years ago

Hello,

I'm sorry for that. There are 2 two bugs in the code. Thank you for reporting, please, check f5a364c changes

lexus2k commented 5 years ago

Could you please, confirm, that the changes work for you?