kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.58k stars 343 forks source link

PSRAM useful for WS2812FX? #339

Closed EherXtrem closed 8 months ago

EherXtrem commented 1 year ago

I have an ESP32-S3-DevKitC-1-N8R8 with 8MB Octal PSRAM. Is it possible to use the pseudo SRAM to add more LEDs?

moose4lord commented 1 year ago

At the moment, I don't think so. After just a cursory scan of the ESP32 RMT driver included with the NeoPixel library (which WS2812FX extends), it doesn't look like there's any support for using PSRAM to store LED data.

Depending on what else is gobbling up memory in your sketch, you may be able to use PSRAM for other features of your sketch (frame buffers, large dataset storage and such), and so free up some regular SRAM to use for LEDs.

EherXtrem commented 1 year ago

THX for your support :)

robertlipe commented 1 year ago

(Drive-by comment) That may be a driver limitation In S3, unlike earlier ESP32s, the SPI, at least, can DMA vi EDMA from the PSRAM. If it's a driver that came from older ESP32 implementations, it may not know that trick. ESP-IDF only learned that trick in the last rev or two.

It may thus ultimately be possible to implement it, but someone is going to sink some work into it: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/external-ram.html (Note the difference in the next if you choose ESP32-S3 vs. ESP32 in the left panel.)

moose4lord commented 8 months ago

This issue seems to have gone stale, so I'm closing.