Update ESP32-HUB75-MatrixPanel-I2S-DMA.h
This commit is contained in:
parent
be2102c3bc
commit
1d29c7b520
1 changed files with 6 additions and 4 deletions
|
@ -480,13 +480,15 @@ class MatrixPanel_I2S_DMA {
|
||||||
|
|
||||||
//ESP_LOGI("flipDMABuffer()", "Set back buffer to: %d", back_buffer_id);
|
//ESP_LOGI("flipDMABuffer()", "Set back buffer to: %d", back_buffer_id);
|
||||||
|
|
||||||
if (back_buffer_id == 0)
|
if (back_buffer_id)
|
||||||
{
|
{
|
||||||
dma_bus.set_dma_output_buffer( false );
|
dma_bus.set_dma_output_buffer( true );
|
||||||
|
back_buffer_id = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dma_bus.set_dma_output_buffer( true );
|
dma_bus.set_dma_output_buffer( false );
|
||||||
|
back_buffer_id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -504,7 +506,7 @@ class MatrixPanel_I2S_DMA {
|
||||||
while(i2s_parallel_is_previous_buffer_free() == false) { }
|
while(i2s_parallel_is_previous_buffer_free() == false) { }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
back_buffer_id ^= 1;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue