Skip to content

busdisplay/lvgl: keep width and height as given at rotation 90 and 270 - #12037

Open
lynt-smitka wants to merge 2 commits into
adafruit:mainfrom
MakerClassCZ:lvgl-rotation-size
Open

lynt-smitka wants to merge 2 commits into
adafruit:mainfrom
MakerClassCZ:lvgl-rotation-size

Conversation

@lynt-smitka

Copy link
Copy Markdown

BusDisplay's width and height are the size after rotation, as in legacy displayio, but busdisplay/lvgl treated them as the panel's size at rotation 0, so rotation=90/270 reported swapped dimensions and drove the panel transposed. This creates the LVGL display at the panel's native size.

Checked in the CP Desktop Lab against legacy displayio and built for adafruit_metro_esp32p4; not run on hardware.

BusDisplay's width and height are the size after rotation, as in the legacy core. Create the LVGL display at the panel's own size so set_rotation() doesn't swap them.

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails the native_sim test now though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants