I’m enjoying playing with the mote (not pHAT(, stand-alone?)) kit. I have got the examples running on a Pi 3, and have made some really simple scripts of my own.
Both the examples and my own script however, suffer from a stalling/hanging effect when I run it on the pi. I can’t keep any of the examples, or my own script continuously running. Eventually the cheerlights stop responding, and the animated rainbow example stops moving after a few minutes. No errors are printed in the windows, not commands are called, and I’m not doing anything else on the machine (which is running a recent Raspbian desktop version).
I have tested my own scripts running on a Macbook though, and they seem to be able to run infinitely, as I would expect them too.
from mote import Mote import random import time mote = Mote() mote.configure_channel(1, 16, False) mote.configure_channel(2, 16, False) mote.configure_channel(3, 16, False) mote.configure_channel(4, 16, False) while True: for channel in range(1,5): mote.clear() mote.set_pixel(channel, random.randint(1,15), 0, 0, 255) mote.show() time.sleep(0.5)
This has been flashing while attached to my laptop happily for about 20 minutes now.
What can I do to maintain the animated/active script running on the Pi? Ideally I’d eventually like to have this running on my zero instead for a build I’m planning, so advice for that as well would be welcome :)