Closed
Description
Problem: https://i.imgur.com/rIOwkUw.mp4
My code:
#include <Arduino.h>
#include <Arduino_GFX_Library.h>
#define GFX_BL 2
#define TFT_BL 2
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
41 /* DE */, 40 /* VSYNC */, 39 /* HSYNC */, 42 /* PCLK */, 14 /* R0 */,
21 /* R1 */, 47 /* R2 */, 48 /* R3 */, 45 /* R4 */, 9 /* G0 */, 46 /* G1 */,
3 /* G2 */, 8 /* G3 */, 16 /* G4 */, 1 /* G5 */, 15 /* B0 */, 7 /* B1 */,
6 /* B2 */, 5 /* B3 */, 4 /* B4 */, 0 /* hsync_polarity */,
180 /* hsync_front_porch */, 30 /* hsync_pulse_width */,
16 /* hsync_back_porch */, 0 /* vsync_polarity */,
12 /* vsync_front_porch */, 13 /* vsync_pulse_width */,
10 /* vsync_back_porch */);
Arduino_RGB_Display *gfx =
new Arduino_RGB_Display(800 /* width */, 480 /* height */, rgbpanel,
0 /* rotation */, true /* auto_flush */);
void setup() {
gfx->begin();
#ifdef TFT_BL
pinMode(TFT_BL, OUTPUT);
digitalWrite(TFT_BL, HIGH);
#endif
gfx->fillScreen(BLACK);
}
void loop() {}
If I run only
pinMode(TFT_BL, OUTPUT);
digitalWrite(TFT_BL, HIGH);
without Arduino_GFX library it does not flicker.
Metadata
Metadata
Assignees
Labels
No labels