My goal is to drive three 14-segment alphanumeric displays using a Metro Express M0 and, well, it just doesn't seem up to the challenge. Essentially, right now, I have a single neopixel (the one included on the board) and I'm trying to import the ht16k33 library. Here's my code:
main.py
Code: Select all
import board
import neopixel
import digitalio
import busio
from adafruit_ht16k33 import segments
i2c = busio.I2C(board.SCL, board.SDA)
pixel = neopixel.NeoPixel(board.NEOPIXEL, 1)
pixel.brightness = 0.1
while True:
pixel[0] = [255, 0, 0]
time.sleep(0.1)
pixel[0] = [0, 0, 0]
time.sleep(0.9)
Code: Select all
Traceback (most recent call last):
File "main.py", line 7, in <module>
File "adafruit_ht16k33/segments.py", line 392, in <module>
MemoryError: memory allocation failed, allocating 96 bytes