cardiograph-computer/python-microcontrollers/pi-pico/tests/pi-pico-8x8-matrix.py

10 lines
240 B
Python

import board
import busio
from adafruit_ht16k33 import matrix
i2c = busio.I2C(board.GP17, board.GP16) # scl, sda
matrix = matrix.Matrix8x8(i2c)
matrix.fill(0) # Clear the matrix.
matrix[0, 0] = 1
matrix.brightness = 1
matrix.blink_rate = 2