I purchased a raspberry pi kit along with a Adafruit 8x8 small matrix with backpack. I started playing with it and everything is perfect. the only problem I am encountering is with matrix or the backpack. each time I start by editing the code and saving it and then run the command. everything works perfect until more or less 30 minutes has passed. after 30 minutes the pi becomes real slow, it starts freezing and the matrix just starts running every code i have ran all at once. i tried clearing the matrix with the grid.clear() and it does't work. removed power to backpack and once i put it back in it keeps doing the same. when i shut down pi with the shut down command the pi turns off , the matrix stops trying to run all the codes at once and LEDS stay "on" showing the beginning of the last successful code that was ran before it went bananas. Then disconnect the pi from power adapter( supplied in kit) and reconnected, then the whole process starts again.. running adafruit's OS.
if anyone can help me , i will appreciate it.
if there is a command that can be use to clear the backpacks memory at the end of each code maybe it will help. or anything to clear the contents of it or in the pi, i really don't know I am not an expert.
thank you .

