Skip to content

Does esp_lvgl_port have the rounder_cb function from LVGL? (BSP-703) #616

@modi12jin

Description

@modi12jin

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.

Image

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

blank

Other 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions