I am changing displays from a LCD to a SSD1331 OLED from Adafruit. I have the display working on my 2560 with there test code.
Now I am tring to get it to work with the sketch that I am changing the display on.
The problem I am having is this sketch uses PROGEM. I understand it uses strings but am not sure of how to have the OLED read and display them.
You have the buffer in ram called "lcdbuffer1". Is your display 16 characters wide and your buffer is 16. That is not possible for a zero terminated string. Make it at least 17.
Copy the string from PROGMEM into that buffer, and from that buffer to the display.
Can you make a small test sketch to test that ?
The display is 96 pixels wide and 64 pixels high.
I made a simple sketch to test. Changed the lcdbuffer1 from 16 to 96. I also changed the Load and draw numbers from 16 to 96.
I had to add a screen color since i haven't found out how to clear the screen yet. So the draw is working like it is supposed to now.