peterhinch / micropython-micro-gui

A lightweight MicroPython GUI library for display drivers based on framebuf, allows input via pushbuttons. See also micropython-touch.
MIT License
247 stars 37 forks source link

Question: Display orientation #22

Closed ThinkTransit closed 1 year ago

ThinkTransit commented 1 year ago

Hi @peterhinch

Great library.

Is it possible to rotate the orientation of the screen 180 degrees? I'm using the ili9341 if that makes a difference.

Thanks

peterhinch commented 1 year ago

This depends on the particular display driver. With the ILI9341 you're in luck, see the docs - with usd, height and width constructor args you can define any orientation.

ThinkTransit commented 1 year ago

Perfect thanks @peterhinch