So I've been messing with this ssd1327 library... Mega 2560 R3.
It works, but when I use over 114x128 resolution begin() returns false... I've just started poking around in the .cpp file, but I'm not versed on much of this. I also don't know any good way to debug this.
Here is the cut down example code driving my SSD1327. What does work is very fast!
//#include <SPI.h>
#include <Adafruit_SSD1327.h>// mega2560 r3 SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).
#define OLED_CS 53
#define OLED_DC 7
#define OLED_RESET 8// hardware SPI (breaks above 128x114)
Adafruit_SSD1327 display(114, 128, &SPI, OLED_DC, OLED_RESET, OLED_CS, 8000000);void setup() {
Serial.begin(9600);
Serial.println("SSD1327 OLED test");if ( ! display.begin(0x3D) ) {
Serial.println("Unable to initialize OLED");
while (1) yield();
}
display.clearDisplay();
display.display();
}void loop() {
// draw many lines
testdrawline();
display.display();
delay(1000);
display.clearDisplay();
}void testdrawline() {
for (uint8_t i = 0; i < display.width(); i += 4) {
display.drawLine(0, 0, i, display.height() - 1, SSD1327_WHITE);
display.display();
}
for (uint8_t i = 0; i < display.height(); i += 4) {
display.drawLine(0, 0, display.width() - 1, i, SSD1327_WHITE);
display.display();
}
delay(250);display.clearDisplay();
}
Maybe 8kb is not enough SRAM for this...