Commit Graph

5 Commits

Author SHA1 Message Date
Scott Shawcroft
4c21f22114
Improve RGBMatrix allocation tracking
This prevents leaks but not all use-after-free issues.
2023-09-29 14:55:42 -07:00
Melissa LeBlanc-Williams
97a8d71356 Swapped address pins for Rev C 2023-07-23 10:50:07 -04:00
Melissa LeBlanc-Williams
46de2cb682 Add buttons and accelerometer interrupt 2023-06-13 07:59:33 -07:00
Jeff Epler
ce84ecf3f6
Fix flash size 2023-06-01 18:57:18 -05:00
Jeff Epler
2fb42579e8
Add minimally tested Adafruit MatrixPortal S3 board def
tested:
 * board.LED
 * neopixel as status LED
 * i2c scan finds lis3dh sensor
 * psram capacity

not tested:
 * rgb matrix      o_O
 * the gpio pins

Introduce new `board` properties for matrixportal-style boards:
 * MTX_COMMON
 * MTX_ADDRESS

These are intended to simplify use of the RGBMatrix constructor:
```py
matrix = RGBMatrix(..., addr_pins=MTX_ADDRESS[:3], **MTX_COMMON)
```
removing the need for sending in the following individual parameters:
 * rgb_pins
 * clock_pin
 * latch_pin
 * output_enable_pins
and making construction of a 16/32/64-row display easy by slicing a tuple
of all address pins rather than writing out the individual pins. If it
works out it'll be ported back to the matrixportal m4 as well.
2023-06-01 17:23:34 -05:00