Skip to content

Commit f31aaf9

Browse files
committed
Update function interface
1 parent 15c9675 commit f31aaf9

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

bsp/esp32_p4_platform/esp32_p4_platform.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,11 @@ void bsp_display_unlock(void)
815815
esp_lv_adapter_unlock();
816816
}
817817

818+
esp_lcd_panel_handle_t bsp_display_get_panel_handle(void)
819+
{
820+
return panel_handle;
821+
}
822+
818823
#endif // (BSP_CONFIG_NO_GRAPHIC_LIB == 0)
819824

820825
static void usb_lib_task(void *arg)

bsp/esp32_p4_platform/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ tags:
2020
targets:
2121
- esp32p4
2222
url: https://github.com/waveshareteam/Waveshare-ESP32-components
23-
version: 1.0.0
23+
version: 1.0.1

bsp/esp32_p4_platform/include/bsp/esp32_p4_platform.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,7 @@ bool bsp_display_lock(uint32_t timeout_ms);
303303
*/
304304
void bsp_display_unlock(void);
305305

306-
/**
307-
* @brief Rotate screen
308-
*
309-
* Display must be already initialized by calling bsp_display_start()
310-
*
311-
* @param[in] disp Pointer to LVGL display
312-
* @param[in] rotation Angle of the display rotation
313-
*/
314-
void bsp_display_rotate(lv_display_t *disp, lv_disp_rotation_t rotation);
306+
esp_lcd_panel_handle_t bsp_display_get_panel_handle(void);
315307
#endif // BSP_CONFIG_NO_GRAPHIC_LIB == 0
316308

317309
/**************************************************************************************************

0 commit comments

Comments
 (0)