RESOLVED: emonGLCD corruption on Adafruit ST7565 RGB LCD

I've replaced the standard ST7565 LCD for one with an RGB backlight, supplied by Adafruit.

Problem is, it's shifting everything down and right, and the left few pixels show some rubbish:

The same happens with the tester application (same pattern too!):

 

However, using Adafruit's library it all works fine:

Before I start ripping the st7565 files to pieces, does anyone have any suggestions what might be causing this? Looks like maybe a buffer somewhere is corrupt or it's sending the wrong data to the screen. Odd that by and large it works OK though.

markp's picture

Re: RESOLVED: emonGLCD corruption on Adafruit ST7565 RGB LCD

Fixed it...

#define LCDUNUSEDSTARTBYTES 1

in GLCD_ST7565.cpp was set to 4. Changed to 1, sorted.

edllew's picture

Re: RESOLVED: emonGLCD corruption on Adafruit ST7565 RGB LCD

Thanks for posting this.  I was having the same problem and was soon going to look into it.  This fixed it.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.