@@ -50,18 +50,18 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
50
50
.clk_src = LCD_CLK_SRC_DEFAULT,
51
51
#endif
52
52
.timings = {
53
- .pclk_hz = (_prefer_speed == GFX_NOT_DEFINED) ? _speed : _prefer_speed,
54
- .h_res = w,
55
- .v_res = h,
53
+ .pclk_hz = (uint32_t )(( _prefer_speed == GFX_NOT_DEFINED) ? _speed : _prefer_speed) ,
54
+ .h_res = ( uint32_t ) w,
55
+ .v_res = ( uint32_t ) h,
56
56
.hsync_pulse_width = _hsync_pulse_width,
57
57
.hsync_back_porch = _hsync_back_porch,
58
58
.hsync_front_porch = _hsync_front_porch,
59
59
.vsync_pulse_width = _vsync_pulse_width,
60
60
.vsync_back_porch = _vsync_back_porch,
61
61
.vsync_front_porch = _vsync_front_porch,
62
62
.flags = {
63
- .hsync_idle_low = (_hsync_polarity == 0 ) ? 1 : 0 ,
64
- .vsync_idle_low = (_vsync_polarity == 0 ) ? 1 : 0 ,
63
+ .hsync_idle_low = (uint32_t )(( _hsync_polarity == 0 ) ? 1 : 0 ) ,
64
+ .vsync_idle_low = (uint32_t )(( _vsync_polarity == 0 ) ? 1 : 0 ) ,
65
65
.de_idle_high = _de_idle_high,
66
66
.pclk_active_neg = _pclk_active_neg,
67
67
.pclk_idle_high = _pclk_idle_high,
@@ -72,6 +72,7 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
72
72
#else
73
73
.bits_per_pixel = 16 ,
74
74
.num_fbs = 1 ,
75
+ .bounce_buffer_size_px = 0 ,
75
76
#endif
76
77
.sram_trans_align = 8 ,
77
78
.psram_trans_align = 64 ,
@@ -80,8 +81,14 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
80
81
.de_gpio_num = _de,
81
82
.pclk_gpio_num = _pclk,
82
83
.disp_gpio_num = GPIO_NUM_NC, // -1
84
+ .data_gpio_nums = {0 },
83
85
.flags = {
86
+ .disp_active_low = true ,
87
+ .refresh_on_demand = false ,
84
88
.fb_in_psram = true , // allocate frame buffer from PSRAM
89
+ .double_fb = false ,
90
+ .no_fb = false ,
91
+ .bb_invalidate_cache = false ,
85
92
},
86
93
};
87
94
0 commit comments