@@ -132,7 +132,6 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
132
132
return (uint16_t *)_rgb_panel->fb ;
133
133
}
134
134
135
-
136
135
#else
137
136
138
137
// Implementation for ESP32 board version 3.x
@@ -153,7 +152,7 @@ Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(
153
152
_b0(b0), _b1(b1), _b2(b2), _b3(b3), _b4(b4),
154
153
_hsync_polarity(hsync_polarity), _hsync_front_porch(hsync_front_porch), _hsync_pulse_width(hsync_pulse_width), _hsync_back_porch(hsync_back_porch),
155
154
_vsync_polarity(vsync_polarity), _vsync_front_porch(vsync_front_porch), _vsync_pulse_width(vsync_pulse_width), _vsync_back_porch(vsync_back_porch),
156
- _pclk_active_neg(pclk_active_neg), _prefer_speed(prefer_speed), _useBigEndian(useBigEndian),
155
+ _pclk_active_neg(pclk_active_neg), _prefer_speed(prefer_speed),
157
156
_de_idle_high(de_idle_high), _pclk_idle_high(pclk_idle_high)
158
157
{
159
158
}
@@ -193,15 +192,13 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
193
192
.vsync_pulse_width = _vsync_pulse_width,
194
193
.vsync_back_porch = _vsync_back_porch,
195
194
.vsync_front_porch = _vsync_front_porch,
196
- // struct {
197
- // uint32_t hsync_idle_low: 1; /*!< The hsync signal is low in IDLE state */
198
- // uint32_t vsync_idle_low: 1; /*!< The vsync signal is low in IDLE state */
199
- // uint32_t de_idle_high: 1; /*!< The de signal is high in IDLE state */
200
- // uint32_t pclk_active_neg: 1; /*!< Whether the display data is clocked out on the falling edge of PCLK */
201
- // uint32_t pclk_idle_high: 1; /*!< The PCLK stays at high level in IDLE phase */
202
- // } flags; /*!< LCD RGB timing flags */
203
-
204
- },
195
+ .flags = {
196
+ .hsync_idle_low = (_hsync_polarity == 0 ) ? 1 : 0 ,
197
+ .vsync_idle_low = (_vsync_polarity == 0 ) ? 1 : 0 ,
198
+ .de_idle_high = _de_idle_high,
199
+ .pclk_active_neg = _pclk_active_neg,
200
+ .pclk_idle_high = _pclk_idle_high,
201
+ }},
205
202
.data_width = 16 , // RGB565 in parallel mode, thus 16 bits in width
206
203
.bits_per_pixel = 16 ,
207
204
.num_fbs = 1 ,
@@ -212,7 +209,7 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
212
209
.vsync_gpio_num = _vsync,
213
210
.de_gpio_num = _de,
214
211
.pclk_gpio_num = _pclk,
215
- .disp_gpio_num = GPIO_NUM_NC, // -1
212
+ .disp_gpio_num = GPIO_NUM_NC, // -1
216
213
.data_gpio_nums = {_b0, _b1, _b2, _b3, _b4, _g0, _g1, _g2, _g3, _g4, _g5, _r0, _r1, _r2, _r3, _r4},
217
214
218
215
.flags = {
0 commit comments