bitbank2 / ssd1327

SSD1327 and SSD1322 OLED display library for Arduino+Linux
26 stars 5 forks source link

Drop redundant buffer start address calculation #8

Open jkunkee opened 2 years ago

jkunkee commented 2 years ago

This PR removes the backbuffer-specific address calculation logic in ssd1327ShowBitmap since it seems to be redundant with the general calculation just after it. Running the calculation twice causes the display to start further into the buffer than intended and to skip areas.

jkunkee commented 2 years ago

I'm working with a Particle Photon, where the dev environment is essentially Arduino but there's plenty of RAM (10s of KiB). Setting USE_BACKBUFFER revealed this bug and another one I'm working on reporting.