An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
1.18k
stars
265
forks
source link
ESP32 I2s Parallel support alternate cadence to reduce DMA memory usage #823
Is your feature request related to a problem? Please describe.
DMA memory is a scarce resource; and with the parallel methods are even worse since x8 or x16 channels is allocated even if the sketch only uses two or three.
Describe the solution you'd like
Support a 3 step cadence option for i2s parallel.
Additional context
Today the 4 step cadence is used (1/4,3/4 pulse ratio). This aligns memory and makes memory access faster at the cost of extra memory (4 x per byte to send).
The new ESP32 S3 LCD uses a 3 step cadence (1/3, 2/3 pulse ratio). This uses 25% less memory, but at a cost of memory updates.
RP2040 parallel demonstrates the ability to expose the option for 3 step or 4 step for sketch author.
Is your feature request related to a problem? Please describe. DMA memory is a scarce resource; and with the parallel methods are even worse since x8 or x16 channels is allocated even if the sketch only uses two or three.
Describe the solution you'd like Support a 3 step cadence option for i2s parallel.
Additional context Today the 4 step cadence is used (1/4,3/4 pulse ratio). This aligns memory and makes memory access faster at the cost of extra memory (4 x per byte to send). The new ESP32 S3 LCD uses a 3 step cadence (1/3, 2/3 pulse ratio). This uses 25% less memory, but at a cost of memory updates. RP2040 parallel demonstrates the ability to expose the option for 3 step or 4 step for sketch author.