Closed tannewt closed 6 years ago
I wonder how feasible would be using this for the displays.
its worth thinking about. I did something similar in the experimental is31fl3731 drivers here: https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731/blob/experimental/adafruit_is31fl3731.py#L132
It doesn't handle 2D slices as far as I know though.
Speaking of is31fl3731, I think we should make it use the framebuf module, once it's available in all ports.
@ladyada has ideas for a framebuf
alternative that we'll move our display drivers to once we get to it.
@deshipu would you mind reviewing this PR too? :-)
@deshipu please take another look!
@deshipu gaves the thumbs up over Discord.
structures. This is better than a tuple of objects because it creates fewer objects by default and is a fixed cost per device independent of the number of entries in the array.