_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.pylibrary from https://github.com/pewpew-game/pew-pewpew-standalone-10.x to handle the LED matrix display and buttons on thepewpew10board.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
bufferis a 64 byte longbytearraythat stores what should be displayed on the matrix.rowsandcolsare both lists of eightDigitalInputOutputobjects that are connected to the matrix rows and columns.buttonsis aDigitalInputOutputobject that is connected to the common side of all buttons (the other sides of the buttons are connected to rows of the matrix).