smittytone / HT16K33-Python

Combination Micropython and Circuitpython drivers for various HT16K33-based LEDs
https://smittytone.net/docs/ht16k33.html
MIT License
31 stars 7 forks source link

Rotation support #3

Closed jose1711 closed 7 months ago

jose1711 commented 2 years ago

Would it be possible to add support for 180 degree rotation (defined at object instantiation)

smittytone commented 2 years ago

I'll consider this for a future release, but TBH it's easy enough to call set_angle() right after instantion and the setting is retained until it's changed in code.

jose1711 commented 2 years ago

The thing is that set_angle() only works for matrix display while 180 rotation should be possible for segment display as well due to their horizontal symmetry.

smittytone commented 2 years ago

Ah well, if that's what you want, that's a different thing. That's adding set_angle() to the segment driver. I'll take a look at that.

smittytone commented 2 years ago

This will be in the next release.

mungewell commented 8 months ago

Is the rotate() function supported on the 1.2inch Adafruit displays?

I see it mentioned here: https://smittytone.net/docs/ht16k33_segment.html#HT16K33Segment.rotate

But not: https://smittytone.net/docs/ht16k33_segmentbig.html

smittytone commented 8 months ago

It is not, which is why it's not mentioned on that driver's page. But I'll take a look at adding it in.