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 3737 mp_lcd_sw_rotation_t sw_rot ;
3838
3939 esp_lcd_rgb_panel_config_t * panel_io_config ;
40- void * padding ;
41-
42- /* specific to bus */
4340 esp_lcd_panel_handle_t panel_handle ;
4441
4542 };
Original file line number Diff line number Diff line change 237237
238238 self -> callback = mp_const_none ;
239239
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 ));
241241
242242 esp_lcd_rgb_panel_config_t * panel_io_config = self -> panel_io_config ;
243243
282282 panel_io_config -> sram_trans_align = 8 ;
283283 panel_io_config -> psram_trans_align = 64 ;
284284 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 ;
287285
288286 int i = 0 ;
289287 for (; i < 16 ; i ++ ) {
397395 self -> panel_io_config -> bits_per_pixel = data -> bytes_per_pixel * 8 ;
398396 self -> panel_io_config -> flags .fb_in_psram = 1 ;
399397 self -> panel_io_config -> flags .double_fb = 1 ;
398+ self -> panel_io_config -> num_fbs = 2 ;
400399
401400 self -> sw_rot .init .cb = & rgb_init_cb ;
402401 self -> sw_rot .flush_cb = & rgb_flush_cb ;
411410 LCD_DEBUG_PRINT ("fb_in_psram=%d\n" , self -> panel_io_config -> flags .fb_in_psram )
412411 LCD_DEBUG_PRINT ("double_fb=%d\n" , self -> panel_io_config -> flags .double_fb )
413412 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 )
414414
415415 return LCD_OK ;
416416 }
You can’t perform that action at this time.
0 commit comments