rusconi / TFT-MoodeCoverArt

Display artwork and some metadata from moode audio on a 240*240 ST7789 TFT
13 stars 9 forks source link

Doesn't run - fails at self._spi = spidev.SpiDev(port, cs) #4

Closed phillipbarnett closed 3 years ago

phillipbarnett commented 3 years ago

Hi, Thanks for this - I'm trying to run a Pirate Audio Line out Pimoroni DAC on a Raspberry Pi 4, using Moodeaudio 7.0.1 I have the software running fine, but would like the TFT display to work so have tried to run your great looking TFT-MoodeCoverArt, but failing.

~/TFT-MoodeCoverArt $ sudo python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py Traceback (most recent call last): File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 67, in spi_speed_hz=80 1000 1000 File "/usr/local/lib/python3.7/dist-packages/ST7789/init.py", line 125, in init self._spi = spidev.SpiDev(port, cs) FileNotFoundError: [Errno 2] No such file or directory

Any ideas? Both files listed above do exist.

Many thanks Phil

rusconi commented 3 years ago

Hi

Couple of questions;

Does your RPI  definitely have SPI turned on?

Is mode  set to 0 in config.yml?

Regards

Russ On 14/03/2021 1:55:17 AM, phillipbarnett @.**> wrote: Hi, Thanks for this - I'm trying to run a Pirate Audio Line out Pimoroni DAC on a Raspberry Pi 4, using Moodeaudio 7.0.1 I have the software running fine, but would like the TFT display to work so have tried to run your great looking TFT-MoodeCoverArt, but failing. ~/TFT-MoodeCoverArt $ sudo python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py Traceback (most recent call last): File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 67, in spi_speed_hz=80 1000 * 1000 File "/usr/local/lib/python3.7/dist-packages/ST7789/init.py", line 125, in init self._spi = spidev.SpiDev(port, cs) FileNotFoundError: [Errno 2] No such file or directory Any ideas? Both files listed above do exist. Many thanks Phil — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [https://github.com/rusconi/TFT-MoodeCoverArt/issues/4], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AOCOMSRNJJAPCFBZFTSN2ZDTDN4FLANCNFSM4ZD4RX6A].

phillipbarnett commented 3 years ago

Oops - you're quite right - I completely skipped the 'Enable SPI' section of your detailed documentation! Many apologies - it worked straight away after I did that. Thanks - looks good!