@chris wrote:
Hi, I am working on a project where I want to use the Unicorn pHAT HD with a strip of Neopixels. I can get both working fine independently, but I would like to use both at the same time. In my program I will turn the neopixels on then create another thread to turn the Unicorn pHAT HD on at the same time.
However I receive the following error:
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "threadTest.py", line 50, in hat draw_animation(img) File "threadTest.py", line 74, in draw_animation unicorn.show() File "/usr/local/lib/python2.7/dist-packages/unicornhathd/__init__.py", line 127, in show _spi.xfer2([_SOF] + (numpy.rot90(_buf,_rotation).reshape(768) * _brightness).astype(numpy.uint8).tolist()) IOError: [Errno 110] Connection timed out
Is there any technical reason why I couldn’t run both at the same time?
Posts: 1
Participants: 1