0

framebuffer-type LCD drivers for high-RAM MCU
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

framebuffer-type LCD drivers for high-RAM MCU

by quarterturn on Tue May 25, 2021 2:28 pm

Are there any LCD libraries which would take advantage of the large RAM in something like a SAMD51 or ESP32 to allow a RAM framebuffer for the LCD? SAMD51 should be able to handle 320x240 8-bit color, and ESP32 even more. I want to do 3D animations, and these require large updates to the LCD. It would be much faster to do this a whole screen at a time using DMA.

There was a very hacky Arduino Uno-only library which used viewport tricks on ILI9342 to get a decent framerate on a 320x240 LCD, but that's not the approach I want to use.

quarterturn
 
Posts: 76
Joined: Mon Mar 23, 2015 11:05 pm

Re: framebuffer-type LCD drivers for high-RAM MCU

by mikeysklar on Tue May 25, 2021 6:36 pm

@quarterturn,

Is your goal to the 3D animations as fast as possible on embedded hardware?

I think the RP2040 recent DVI hacks by Luke Wren for which we have a DVI breakout to help with is the most impressive. However, that is not LCD specific.

https://www.adafruit.com/product/4984
https://github.com/Wren6991/PicoDVI

Our guide on Animated GIFs using the Arcada library with an LCD is closer to what you are talking about, but not necessarily the 3D demo kind of stuff. This definitely pushes the M4's on compute and memory.

https://learn.adafruit.com/pyportal-ani ... y?view=all

Adafruit_GFX would be the library that has support for ZeroDMA on the M4s and gets you to 320x320 in and a place you can code up demos.

https://blog.adafruit.com/2018/12/12/fa ... gains-dma/
https://github.com/adafruit/Adafruit-GFX-Library

mikeysklar
 
Posts: 4920
Joined: Mon Aug 01, 2016 8:10 pm

Re: framebuffer-type LCD drivers for high-RAM MCU

by quarterturn on Wed May 26, 2021 9:27 am

Thanks for the links. I'll take a look at the GIF player. It may not be much work to modify it to read from RAM vs the SD card. I'll also take a look at what they did for the Arduboy, which was I think an 328p and a 1-bit 128x64 OLED.

In terms of 3D, I'm thinking along the lines of Sega 32X-quality, meaning no textures and just face-normal shading. M4 should have enough computing power to handle that level of 3D complexity.

quarterturn
 
Posts: 76
Joined: Mon Mar 23, 2015 11:05 pm

Please be positive and constructive with your questions and comments.