lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
356 stars 51 forks source link

Problem with "printFixedPgm" #112

Open ChristianBrandtner opened 4 months ago

ChristianBrandtner commented 4 months ago

there is a bug in "printFixedPgm"

Code:

static const char text[] PROGMEM = "PROGMEM Text";

static void textDemo() { display.setFixedFont( ssd1306xled_font6x8 ); display.clear(); display.invertColors(); display.printFixed(0, 32, "Inverted bold", STYLE_BOLD); display.printFixedPgm(0, 40, text, STYLE_BOLD); display.invertColors();

} on Display PROGMEM Text is white: 20240205_085617

if not invertColors, PROGMEM Text: there are pixel missing: 20240205_085534

My hardware Ardunio Nano, SSD1306, lcdgfx version 1.1.5, Arduino Ide 1.8.19, OS Debian 12 bookworm

lexus2k commented 4 months ago

@ChristianBrandtner

Thank you for reporting this issue. Color-related issue is fixed per c41130b commit. Bold style issue is under investigation.