I’m using the RedBoardT
Have grabbed the latest CircuitPython libraries from https://github.com/adafruit/Adafruit_Ci … hon_Bundle
When I attempt to import many of these I get a Memory Error
Traceback (most recent call last):
File “main.py”, line 20, in
File “charlcd_mono_simpletest.py”, line 5, in
MemoryError: memory allocation failed, allocating 838 bytes
or
import adafruit_bme280
Traceback (most recent call last):
File “”, line 1, in
MemoryError: memory allocation failed, allocating 512 bytes
Does Sparkfun have it’s own CircuitPython libraries for the Redboard or should I be able to use these libraries from Adafruit?
Hi benignfun.
I can’t help with the Adafruit libraries, but if you’re wanting to get Circuit Python back on your RedBoard Turbo, the directions [on this page will walk you through the process. It’s pretty simple, you just need to download a file, unzip it and copy it over to the RedBoard Turbo’s USB drive.](RedBoard Turbo Hookup Guide - SparkFun Learn)
Hi benignfun, I’m the lead for CircuitPython and can help answer your question. Memory is pretty tight on SAMD21s like the one on the RedBoard Turbo.
It looks like you are using the REPL to test the imports. Can you post the full list of what you are running? It can be tricky to import a bunch of libraries at once.