I get this in the REPL window when i run the program:
main.py output:
Feynbot demo!
6144
Traceback (most recent call last):
File "main.py", line 76, in <module>
File "main.py", line 40, in play_file
MemoryError: memory allocation failed, allocating 512 bytes
The solenoids run and then nothing, any idea why?
Just got it working, but still confused.
Followed a link to MemoryError and Dan had this to say :
the adafruit_circuitplayground.express library is "frozen" into 3.0.0. You can remove lib/adafruit_circuitplayground and then it will use the frozen version, which will not use up RAM when imported.
I had updated to the latest bundle so i removed the lib folder from CIRCUITPY and everything worked.
So why doesn't it work with the latest bundle? Is it that the program needs all the memory, and when should i include the latest lib folder.
Feynbot demo! not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Feynbot demo! not working
that code is fairly old, and doesn't even use the modern crickit library. its just an inspirational example, so we wont be revisiting it. but if you get something similar working please let us know! :)
Please be positive and constructive with your questions and comments.