Add configurable offset to SPI screen

This commit is contained in:
Kevincoooool
2024-11-30 19:00:05 +08:00
parent 5e7c5da337
commit 43a0cbeebc
5 changed files with 167 additions and 35 deletions

View File

@@ -32,7 +32,7 @@ private:
public:
St7789Display(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
gpio_num_t backlight_pin, bool backlight_output_invert,
int width, int height, bool mirror_x, bool mirror_y, bool swap_xy);
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy);
~St7789Display();
};