PewPew(buffer: 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 the
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.
bufferis a 64 byte long
bytearraythat stores what should be displayed on the matrix.
colsare both lists of eight
DigitalInputOutputobjects that are connected to the matrix rows and columns.
DigitalInputOutputobject that is connected to the common side of all buttons (the other sides of the buttons are connected to rows of the matrix).