andrewjw / i75

Wrapper around Pimoroni's Interstate75 library to allow for local testing
GNU General Public License v3.0
2 stars 2 forks source link

Angle / Rotation? #98

Open danjenkins opened 3 days ago

danjenkins commented 3 days ago

The picographics text method accepts an angle parameter which is incredibly useful if you are working on a 128x64 board that you have to change the rotation of everything by 270 degrees to make it look right.

When painting individual pixels thats easy enough to do but when you're reliant on the lib to write out some text for you.... that becomes more of an issue.

I'm a little confused by the rotate param when setting up the display because in your examples you're rotating if not emulated.... but native hub75 doesn't support rotation? Or at least thats what I was told?

Even if it does support rotation, you should be able to angle text the same way the native picographics text method allows.

andrewjw commented 3 days ago

I haven't got the screen level rotating working yet. That is something I wanted to add in this library, as you say it's not supported in the hardware.

For text I've written my own text renderer. In order to be able to emulate the screen on a PC I can't rely on anything more than the most basic functions from the underlying library. My eventual goal is to be able to run i75 on a stock MicroPython install, and not use the Pimoroni libraries for anything. I'm along way from that though.

Pull requests very welcome to add text rotation, but doing anything other than 90 degree turns will probably be tricky.