Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
This commit is contained in:
parent
8f62da2d19
commit
12f22832d5
1 changed files with 2 additions and 0 deletions
|
@ -195,11 +195,13 @@ void MatrixPanel_I2S_DMA::configureDMA(const HUB75_I2S_CFG &_cfg)
|
||||||
int current_dmadescriptor_offset = 0;
|
int current_dmadescriptor_offset = 0;
|
||||||
|
|
||||||
// HACK: If we need to split the payload in 1/2 so that it doesn't breach DMA_MAX, lets do it by the colour_depth.
|
// HACK: If we need to split the payload in 1/2 so that it doesn't breach DMA_MAX, lets do it by the colour_depth.
|
||||||
|
/*
|
||||||
int num_dma_payload_colour_depths = m_cfg.getPixelColorDepthBits();
|
int num_dma_payload_colour_depths = m_cfg.getPixelColorDepthBits();
|
||||||
if (frame_buffer[0].rowBits[0]->getColorDepthSize() > DMA_MAX)
|
if (frame_buffer[0].rowBits[0]->getColorDepthSize() > DMA_MAX)
|
||||||
{
|
{
|
||||||
num_dma_payload_colour_depths = 1;
|
num_dma_payload_colour_depths = 1;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Fill DMA linked lists for both frames (as in, halves of the HUB75 panel) in sequence (top to bottom)
|
// Fill DMA linked lists for both frames (as in, halves of the HUB75 panel) in sequence (top to bottom)
|
||||||
|
|
Loading…
Reference in a new issue