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

`%` character flipped #23

Closed CromFr closed 6 years ago

CromFr commented 6 years ago

Not sure if it is intentional, but the default font for rendering the % character is fliped left/right (or top/bottom depending on how your brain works ^^)

However the courier_new_font11x16_digits displays the % character correctly

LCD display type

SSD1306

Steps to reproduce the issue

#include "ssd1306.h"
#include "font6x8.h"
void setup()
{
    ssd1306_128x64_i2c_init();
    ssd1306_fillScreen(0x00);
    ssd1306_setFixedFont(ssd1306xled_font6x8);
    ssd1306_printFixed  (0,  8, "This % isn't right", STYLE_NORMAL);
}
void loop(){}

Actual behavior

img_20180129_132920

lexus2k commented 6 years ago

Hi Charles,

Good finding. Fixed in commit, attached to this issue.

CromFr commented 6 years ago

Damn you're quick :) Thanks !

lexus2k commented 6 years ago

1.4.7 with the % char fix is released.