Update ESP32-HUB75-MatrixPanel-I2S-DMA.h
This commit is contained in:
parent
aa0c7785b2
commit
a2d3efc0f3
1 changed files with 5 additions and 4 deletions
|
@ -496,9 +496,6 @@ class MatrixPanel_I2S_DMA {
|
|||
{
|
||||
if ( !m_cfg.double_buff) return;
|
||||
|
||||
// Flip to other buffer as the backbuffer. i.e. Graphic changes happen to this buffer (but aren't displayed until showDMABuffer())
|
||||
back_buffer_id ^= 1;
|
||||
|
||||
#if SERIAL_DEBUG
|
||||
Serial.printf_P(PSTR("Set back buffer to: %d\n"), back_buffer_id);
|
||||
#endif
|
||||
|
@ -507,6 +504,10 @@ class MatrixPanel_I2S_DMA {
|
|||
|
||||
// Wait before we allow any writing to the buffer. Stop flicker.
|
||||
while(i2s_parallel_is_previous_buffer_free() == false) { }
|
||||
|
||||
// Flip to other buffer as the backbuffer. i.e. Graphic changes happen to this buffer (but aren't displayed until showDMABuffer())
|
||||
back_buffer_id ^= 1;
|
||||
|
||||
}
|
||||
|
||||
inline void setPanelBrightness(int b)
|
||||
|
|
Loading…
Reference in a new issue