I have both an Every and a classic nano. Each obviously with different memory sizes. I read somewhere in the learning that an oled display of 128x64 will use 1024 bytes of SRAM just to handle the display, and a 128x128 will take 2048 bytes to manage. Is this true? Will I basically not be able to use a large oled of 128x128 on my classic nano without significant code management?
Plan to use SSD1331
The SSD1331 is 96RGB x 64 Dot Matrix
OLED/PLED Segment/Common Driver with Controller
So you cannot possibly use on a 128x128 panel. Nor could you have a buffer for 96x64 16-bit color pixels.
In answer to your question about monochrome displays like SSD1306.
Yes, libraries like Adafruit_SSD1306 claim a 1024 byte buffer at runtime.
U8g2lib can use a small buffer.
Text only libraries use no buffer at all.
I have a grayscale 128x128 with SSD1327
and a full color 128x128 with SSD1351
The SSD1351 is pixel-addressable. It needs no buffer for graphics.
The SSD1327 is only addressable as pixel-pairs. So graphics are difficult without any buffer.
Some libraries like U8g2lib will treat the grayscale SSD1327 as monochrome. Which defeats the object of buying the grayscale display. Especially since the full-color SSD1351 is a similar price.
David.
I guess I mean Use 1331 for 96x64 65k color oled (which works well right now with tons of images stored in progmem)
Or 1351 for the 128x128. I was planning on using the 1331 driver with the 96x64, but I wanted to understand if I was not going to be able to use the 128x128 color display with 1351.
Thanks
Color displays are easy to drive for graphics. You can draw individual pixels.
Monochrome and Grayscale store multiple pixels per byte of internal Display RAM.
This means that you have to read the whole byte before changing an individual pixel.
Fine for Parallel interface. But SPI and I2C only let you write to the RAM.
Which is why you read / write to a buffer. Then send the whole updated buffer to the screen with display.display()
The SSD1351 should work fine. It is full colour. You never need worry about adjacent pixels.
David.
This topic was automatically closed after 120 days. New replies are no longer allowed.