olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.25k stars 314 forks source link

REQUEST - 124x68 Fonts off Screen #492

Open dcwalmsley opened 5 years ago

dcwalmsley commented 5 years ago

I have an Ultipanel 124x68 display and noticed upon compiling your library (1.19.1) with my Marlin 2.0-bugfix that I noticed the display is to the left by 2 columns leaving portion of the font off screen. I modified the code in the u8g_dev_ssd1309_128x64.c file and compiled and this correct my issue,

Line #77-83

static const uint8_t u8g_dev_ssd1309_128x64_data_start[] PROGMEM = { U8G_ESC_ADR(0), / instruction mode / U8G_ESC_CS(1), / enable chip / 0x010, / set upper 4 bit of the col adr to 0 / 0x000, / set lower 4 bit of the col adr to 4 / U8G_ESC_END / end of sequence / };

to

static const uint8_t u8g_dev_ssd1309_128x64_data_start[] PROGMEM = { U8G_ESC_ADR(0), / instruction mode / U8G_ESC_CS(1), / enable chip / 0x010, / set upper 4 bit of the col adr to 0 / 0x002, / set lower 4 bit of the col adr to 4 / U8G_ESC_END / end of sequence / };

Thanks,

Doug Walmsley

olikraus commented 5 years ago

Ultipanel 124x68 display

Any datasheet available?