-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Labels
Description
Board
esp32s3
Hardware Description
amoled_qspi_co5300
IDE Name
vscode
Operating System
ubuntu
Description
I am using an AMOLED screen and have requirements for coordinates.
Without using esp_lvgl_port, I handle it like this in lvgl
void example_lvgl_rounder_cb(struct _lv_disp_drv_t *disp_drv, lv_area_t *area)
{
uint16_t x1 = area->x1;
uint16_t x2 = area->x2;
uint16_t y1 = area->y1;
uint16_t y2 = area->y2;
// round the start of coordinate down to the nearest 2M number
area->x1 = (x1 >> 1) << 1;
area->y1 = (y1 >> 1) << 1;
// round the end of coordinate up to the nearest 2N+1 number
area->x2 = ((x2 >> 1) << 1) + 1;
area->y2 = ((y2 >> 1) << 1) + 1;
}
Is there a similar approach for esp_lvgl_port?
Sketch
blankOther Steps to Reproduce
No response
I have checked existing issues, README.md and ESP32 Forum
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.