adafruit / Adafruit_CircuitPython_HT16K33

Adafruit CircuitPython driver for the HT16K33, a LED matrix driver IC.
MIT License
41 stars 29 forks source link

Memory issues even on some Express boards #103

Open caternuson opened 2 years ago

caternuson commented 2 years ago

Re this thread: https://forums.adafruit.com/viewtopic.php?p=938210

Can recreate via simple REPL import:

Adafruit CircuitPython 7.3.2 on 2022-07-20; Adafruit Feather M0 Express with samd21g18
>>> import adafruit_ht16k33.segments
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_ht16k33/segments.py", line 484, in <module>
MemoryError: memory allocation failed, allocating 96 bytes
>>> 
makermelissa commented 2 years ago

It was recently updated to support multiple displays. Perhaps it could be optimized a little by splitting it up some more and then just loading the necessary stuff. As a quick fix, the user could use an older version for now.