Hi,
A while ago you helped me get a unicorn-hat working on a 64 bit pi 3, I also have a pi 2 that runs 32 bit, I can’t connect it to the net and download the unicorn-hat files so I am trying to copy the files so I can run the unicorn-hat on the pi 2.
I have copied the unicorn-hat directory and put it in the same place as the original.
I have slightly altered the line.py sketch so it gives me an xmas tree and renamed it xmas-tree.py
It runs fine on the pi 3.
this is the file I would like to run.
If I load it into geany from the uniform-hat directory on the pi 2 it compiles fine but when I execute it I get
Unicorn HAT HD: Lines
Demonstrates how to draw an xmas tree on Unicorn HAT HD.
Press Ctrl+C to exit!
Showing lines at rotation: 270
Traceback (most recent call last):
File "xmas-tree.py", line 22, in <module>
unicornhathd.show()
File "/usr/lib/python2.7/dist-packages/unicornhathd/__init__.py", line 269, in show
setup()
File "/usr/lib/python2.7/dist-packages/unicornhathd/__init__.py", line 102, in setup
_spi.open(0, 0)
IOError: [Errno 2] No such file or directory
------------------
(program exited with code: 1)
Press return to continue
I am assuming downloading the files from the internet on the pi 3 has added a file somewhere that the pi 2 is not seeing but I can’t work out the problem. I can find __init__.py but what is __spi.open(0, 0)?
Can you see my error??
thanks
Bob.