_pew
– LED matrix driver¶
Available on these boards
- class _pew.PewPew(buffer: _typing.ReadableBuffer, rows: List[digitalio.DigitalInOut], cols: List[digitalio.DigitalInOut], buttons: digitalio.DigitalInOut)¶
This is an internal module to be used by the
pew.py
library from https://github.com/pewpew-game/pew-pewpew-standalone-10.x to handle the LED matrix display and buttons on thepewpew10
board.Usage:
This singleton class is instantiated by the ``pew`` library, and used internally by it. All user-visible interactions are done through that library.
Initializes matrix scanning routines.
The
buffer
is a 64 byte longbytearray
that stores what should be displayed on the matrix.rows
andcols
are both lists of eightDigitalInputOutput
objects that are connected to the matrix rows and columns.buttons
is aDigitalInputOutput
object that is connected to the common side of all buttons (the other sides of the buttons are connected to rows of the matrix).