I have performed everything that is mentioned but still i am not able to use the leds on the hat there is some problem in opening the spi ports (i think so). I have enabled tyhe spi interface and rebooted the pi several times. I am also using a 5 in Lcd touch screen (only as a monitor throught HDMI port). The LCD library also uses the spi interface so maybe there is some clash in these libraries. I am sharing the error below
(env) pi@raspberrypi:~/4mics_hat $ python pixels.py
Traceback (most recent call last):
File "pixels.py", line 73, in
pixels = Pixels()
File "pixels.py", line 20, in init
self.dev = apa102.APA102(num_led=self.PIXELS_N)
File "/home/pi/4mics_hat/apa102.py", line 90, in init
self.spi.open(bus, device) # Open SPI port 0, slave device (CS) 1
IOError: [Errno 2] No such file or directory
I have performed everything that is mentioned but still i am not able to use the leds on the hat there is some problem in opening the spi ports (i think so). I have enabled tyhe spi interface and rebooted the pi several times. I am also using a 5 in Lcd touch screen (only as a monitor throught HDMI port). The LCD library also uses the spi interface so maybe there is some clash in these libraries. I am sharing the error below
(env) pi@raspberrypi:~/4mics_hat $ python pixels.py Traceback (most recent call last): File "pixels.py", line 73, in
pixels = Pixels()
File "pixels.py", line 20, in init
self.dev = apa102.APA102(num_led=self.PIXELS_N)
File "/home/pi/4mics_hat/apa102.py", line 90, in init
self.spi.open(bus, device) # Open SPI port 0, slave device (CS) 1
IOError: [Errno 2] No such file or directory