1.26.23
- owenmichael12333
- Jan 26, 2023
- 1 min read
This week I fixed my issue from last week which did not allow me to use certain libraries. This allowed me to finally take data from the API in JSON which I could then use to display on the OLED screen. To show the temperature, I converted to value of the temperature in the JSON file to a string and then printed it to the display.

I now need to combine my previous code in order to display an animation according to the different weather, however I am receiving a memoryAllocation error. I've dealt with this error before so I think I might know how to fix it so it should not be too bad.
Traceback (most recent call last):
File "<stdin>", line 63, in <module>
File "adafruit_imageload/__init__.py", line 74, in load
File "adafruit_imageload/bmp/__init__.py", line 73, in load
File "adafruit_imageload/bmp/indexed.py", line 81, in load
MemoryError: memory allocation failed, allocating 114688 bytes
Comments