XavierBerger/pcd8544

getting [errno 9]

Opened this issue · 4 comments

After following the instructions and setting up everything, i got this error when running pi_logo.py (and for all scripts):

pi@raspberrypi /pcd8544/examples $ sudo ./pi_logo.py
Traceback (most recent call last):
File "./pi_logo.py", line 57, in
lcd.cls()
File "/usr/local/lib/python2.7/dist-packages/pcd8544/lcd.py", line 86, in cls
gotoxy(0, 0)
File "/usr/local/lib/python2.7/dist-packages/pcd8544/lcd.py", line 115, in gotoxy
spi.writebytes([x+128,y+64])
IOError: [Errno 9] Bad file descriptor

I am getting the same problem. Has anyone solved this yet?

same ...

likewise - can anyone suggest anything?

The SPI master driver is disabled by default on Raspbian. To enable it, use raspi-config, or ensure the line dtparam=spi=on isn't commented out in /boot/config.txt, and reboot. If the SPI driver was loaded, you should see the device /dev/spidev0.0

source:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md