sajattack / st7735-lcd-rs

Rust library for displays using the ST7735 driver
https://docs.rs/st7735-lcd
MIT License
36 stars 28 forks source link

Missing orientations #21

Open FlorianUekermann opened 2 years ago

FlorianUekermann commented 2 years ago

I have a somewhat popular display with a mirrored x or y axis. There doesn't seem to be a matching orientation. Adding the following orientations should cover any of the 8 conceivable orientations:

Orientation::PortraitMirrored
Orientation::PortraitSwappedMirrored
Orientation::LandscapeMirrored
Orientation::LandscapeSwappedMirrored

It doesn't matter if Mirrored affects the x or y axis. Applying it to the x axis may be more intuitive, because Swapped already affects the y axis.

FlorianUekermann commented 2 years ago

Any chance this will be implemented?