Feynbot demo! not working

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
unawoo
 
Posts: 114
Joined: Thu Apr 14, 2016 9:39 pm

Feynbot demo! not working

Post by unawoo »

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.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feynbot demo! not working

Post by adafruit2 »

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! :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”