adafruit / Adafruit_CircuitPython_MatrixPortal

CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings
MIT License
36 stars 20 forks source link

Add support for passing tile= and serpentine= down to the RGBMatrix constructor #58

Closed jepler closed 3 years ago

jepler commented 3 years ago

This will require some thought, since this feature is only being added in CircuitPython 6.2, and older versions would throw an error if these values are sent in.

This also affects the automatic determination of address lines (64 rows could be 4 address bits + 2 tiles, or 5 address bits + 1 tile)

jepler commented 3 years ago

Please make the default value for serpentine=True.

For backwards-compatibility, you can check if tile is specified as number bigger than 1; if not, use the constructor call without tile= or serpentine=.