Closed DJDevon3 closed 4 months ago
Oof, that'll keep me busy. I didn't try to type init on purpose because I thought you couldn't type init's.
Thank you for the review and the hints. I'm on it.
In the mean time here's a nice demo of the rotation.
Note to self don't put pound symbols in commit titles. github formatted it to point at adafruit issue number 2. i don't know how to fix that.
oh dear lord the amount of errors... pylint hates me.
🏳️ I Surrender. Pylint has defeated me.
I defined ReadableBuffer in both typing and circuitpython_typing. Pylint won't recognize either of them.
I can only conclude that ReadableBuffer does not exist in circuitpython_typing.
There are now 4 ReadableBuffer errors instead of 1... So it was correctly setting 3 of them previously.
I set it back and now there's only 1 ReadableBuffer error again...
So I replaced the error on line 119
def _i2c_read_reg(self, reg: Optional[int] = None, result: Optional[ReadableBuffer] = None):
with
def _i2c_read_reg(self, reg: Optional[int] = None, result: Optional[int] = None):
and that passes but now errors on line 128 which is the next Optional[ReadableBuffer] use.
Nope, I'm not allowed to use ReadableBuffer or WriteableBuffer in any fashion.
@FoamyGuy God bless you. Thank you. 🙏 Yes that was a struggle. I don't want to see pylint again until next year.
Added new feature: ability to rotate display 0,90,180,270.
This will be particularly useful to arrange multiple charlieplexed matrixes together in any orientation for chaining. I don't think chaining multiple into 1 matrix is currently supported but it's a step in the right direction.
Added 16x9 charlieplex example that includes the new rotation feature.
"attempted" to add typing annotations... expect some to be wrong and that's ok, an attempt was made. i did not attempt to type every file. want to be sure i can do at least 1 correctly first then will do the other examples.
Rotation = 0 (hard to photograph because it's a scrolling marquee)
Rotation = 90