Skip to content

Commit

Permalink
feat(examples): update bsp of esp_brookesia_phone_p4_function_ev_board
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzw655 committed Oct 23, 2024
1 parent 9f65e5f commit 1a081e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
dependencies:
## Required IDF version
idf: ">=5.3"
espressif/esp32_p4_function_ev_board: "^3"
espressif/esp32_p4_function_ev_board: "^4"
espressif/esp-brookesia:
version: "*"
override_path: "../../../../../esp-brookesia"
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ extern "C" void app_main(void)
bsp_display_cfg_t cfg = {
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
.buffer_size = BSP_LCD_H_RES * BSP_LCD_V_RES,
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
.flags = {
.buff_dma = false,
.buff_spiram = true,
.sw_rotate = false,
}
};
lv_disp_t *disp = bsp_display_start_with_config(&cfg);
Expand All @@ -47,7 +50,6 @@ extern "C" void app_main(void)

/* Try using a stylesheet that corresponds to the resolution */
if ((BSP_LCD_H_RES == 1024) && (BSP_LCD_V_RES == 600)) {
ESP_LOGI(TAG, "Using external stylesheet");
ESP_Brookesia_PhoneStylesheet_t *phone_stylesheet = new ESP_Brookesia_PhoneStylesheet_t ESP_BROOKESIA_PHONE_1024_600_DARK_STYLESHEET();
ESP_BROOKESIA_CHECK_NULL_EXIT(phone_stylesheet, "Create phone stylesheet failed");

Expand Down

0 comments on commit 1a081e1

Please sign in to comment.