i just upgraded my little OLED (from you guys, love that thing!) to a bigger graphic display. i know that the current state of the library does not run on the Arduino Due so I began porting it over. I removed the PROGMEM part from the glcdfont table and ported over the things like pgm_read_word etc; I've got things hooked up, back light is all happy but (and you know what i'm going to say) I can't get anything poppin up on the display. I was hoping someone could point at something in the library that isn't correct or some hint at what i'm doing wrong. i'd really like to get this things working, that screen is just so beautiful! attached ive got all the files needed to run on the Due.
Here is the .ino for easy of testing:
Code: Select all
#include "ST7565.h"
// the LCD backlight is connected up to a pin so you can turn it on & off
#define BACKLIGHT_LED 10
// pin 9 - Serial data out (SID)
// pin 8 - Serial clock out (SCLK)
// pin 7 - Data/Command select (RS or A0)
// pin 6 - LCD reset (RST)
// pin 5 - LCD chip select (CS)
ST7565 glcd(12, 11, 10, 9, 8);
// The setup() method runs once, when the sketch starts
void setup() {
Serial.begin(9600);
// turn on backlight
pinMode(BACKLIGHT_LED, OUTPUT);
digitalWrite(BACKLIGHT_LED, HIGH);
// initialize and set the contrast to 0x18
glcd.begin(0x20);
glcd.display(); // show splashscreen
delay(2000);
glcd.clear();
}
void loop()
{
// draw a string at location (0,0)
glcd.drawstring(0, 0, "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation");
glcd.display();
delay(2000);
glcd.clear();
}