Function esp_idf_hal::sys::esp_lcd_panel_swap_xy
source ยท pub unsafe extern "C" fn esp_lcd_panel_swap_xy(
panel: *mut esp_lcd_panel_t,
swap_axes: bool,
) -> i32
Expand description
@brief Swap/Exchange x and y axis
@note Combined with esp_lcd_panel_mirror()
, one can realize screen rotation
@param[in] panel LCD panel handle, which is created by other factory API like esp_lcd_new_panel_st7789()
@param[in] swap_axes Whether to swap the x and y axis
@return
- ESP_OK on success
- ESP_ERR_NOT_SUPPORTED if this function is not supported by the panel