flipDMABuffer - What am I doing wrong? #611
-
Hi, I'm trying to reduce flickering using flipDMABuffer. From what I understand, I can disconnect (flip#1) the buffer from the output (sending it to the back), do some heavy calculations for the new output, and then reconnect it (flip#2). I've simplified the problem in the following test sketch. Why am I seeing the "Temp Output" on the display? Wasn't it supposed to go to the back buffer? Thanks Jan PS: Thank you for providing this library; it greatly simplifies my project. #include <ESP32-HUB75-MatrixPanel-I2S-DMA.h> const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module. #define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module. void setup() #define R1_PIN 25 HUB75_I2S_CFG::i2s_pins _pins = {R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, LAT_PIN, OE_PIN, CLK_PIN}; display = new MatrixPanel_I2S_DMA(mxconfig); display->begin(); void drawHeavyStuff() display->setCursor(0, 0); void loop() delay(1000); } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found it! The initialization of the double buffer was not done correctly. |
Beta Was this translation helpful? Give feedback.
Found it!
The initialization of the double buffer was not done correctly.
After I fixed it, flipping works like a charm. No more flickering.