Skip to content

Display Rotation Issues (Legacy / Hardware Limitation) #2

@seichris

Description

@seichris

We implemented 90° rotation, but encountered hardware limitations with the CO5300 driver/panel.

Problem:

When rotating 90° (MADCTL 0x22), a thin green strip appears at the bottom of the display.

Cause:

Likely a mismatch between the CO5300's internal 480x480 panel and our 466x466 display window when row/col swap (MV) is active. The driver's writeAddrWindow offsets may need custom adjustment for rotated modes.

Status:

  • 0°: Works perfectly.
  • 90°: Functional (touch & map correct), but has visual green artifact at bottom.
  • 180°/270°: Not supported by hardware (mirroring issues).

Tried fixes:

fillScreen after rotation, custom constructor offsets (made it worse), various MADCTL bits.

Future fix ideas:

Modify Arduino_CO5300 driver to handle rotation offsets dynamically, or use LVGL software rotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions