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
269 stars 40 forks source link

Question: Display orientation #22

Closed ThinkTransit closed 2 years ago

ThinkTransit commented 2 years 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 2 years 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 2 years ago

Perfect thanks @peterhinch