Function esp_idf_svc::sys::esp_lcd_panel_set_gap
source ยท pub unsafe extern "C" fn esp_lcd_panel_set_gap(
panel: *mut esp_lcd_panel_t,
x_gap: i32,
y_gap: i32,
) -> i32
Expand description
@brief Set extra gap in x and y axis
The gap is the space (in pixels) between the left/top sides of the LCD panel and the first row/column respectively of the actual contents displayed.
@note Setting a gap is useful when positioning or centering a frame that is smaller than the LCD.
@param[in] panel LCD panel handle, which is created by other factory API like esp_lcd_new_panel_st7789()
@param[in] x_gap Extra gap on x axis, in pixels
@param[in] y_gap Extra gap on y axis, in pixels
@return
- ESP_OK on success