File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 37
37
mp_lcd_sw_rotation_t sw_rot ;
38
38
39
39
esp_lcd_rgb_panel_config_t * panel_io_config ;
40
- void * padding ;
41
-
42
- /* specific to bus */
43
40
esp_lcd_panel_handle_t panel_handle ;
44
41
45
42
};
Original file line number Diff line number Diff line change 237
237
238
238
self -> callback = mp_const_none ;
239
239
240
- self -> panel_io_config = malloc (sizeof (esp_lcd_rgb_panel_config_t ));
240
+ self -> panel_io_config = ( esp_lcd_rgb_panel_config_t * ) malloc (sizeof (esp_lcd_rgb_panel_config_t ));
241
241
242
242
esp_lcd_rgb_panel_config_t * panel_io_config = self -> panel_io_config ;
243
243
282
282
panel_io_config -> sram_trans_align = 8 ;
283
283
panel_io_config -> psram_trans_align = 64 ;
284
284
panel_io_config -> flags .refresh_on_demand = (uint32_t )args [ARG_refresh_on_demand ].u_bool ;
285
- panel_io_config -> flags .fb_in_psram = 0 ;
286
- panel_io_config -> flags .double_fb = 0 ;
287
285
288
286
int i = 0 ;
289
287
for (; i < 16 ; i ++ ) {
397
395
self -> panel_io_config -> bits_per_pixel = data -> bytes_per_pixel * 8 ;
398
396
self -> panel_io_config -> flags .fb_in_psram = 1 ;
399
397
self -> panel_io_config -> flags .double_fb = 1 ;
398
+ self -> panel_io_config -> num_fbs = 2 ;
400
399
401
400
self -> sw_rot .init .cb = & rgb_init_cb ;
402
401
self -> sw_rot .flush_cb = & rgb_flush_cb ;
411
410
LCD_DEBUG_PRINT ("fb_in_psram=%d\n" , self -> panel_io_config -> flags .fb_in_psram )
412
411
LCD_DEBUG_PRINT ("double_fb=%d\n" , self -> panel_io_config -> flags .double_fb )
413
412
LCD_DEBUG_PRINT ("rgb565_byte_swap=%d\n" , data -> rgb565_swap )
413
+ LCD_DEBUG_PRINT ("rgb565_byte_swap=%d\n" , self -> panel_io_config -> num_fbs )
414
414
415
415
return LCD_OK ;
416
416
}
You can’t perform that action at this time.
0 commit comments