Receiving the following error: “Chip Select: (line 8, SPI_CE0_N) currently claimed by spi0 CS0” when trying to run stripes.py from the Pimoroni examples folder.
However, this error only pops up when in the Pimoroni virtual environment:
Source ~/.virtualenvs/pimoroni/bin/activate
When running stripes.py outside the virtual environment, and specifying the device; the screen updates fine.
Screen: Impression Spectra 7.3
Hardware: Pi 3B
Since the Python-Path is different inside and outside of a virtual environment, the programs and libraries you are actually are running might be different. In your case they are obviously different.
Have you added the extra line in /boot/firmware/config.txt for the SPI0? Goto GitHub - pimoroni/inky: Combined library for V2/V3 Inky pHAT and Inky wHAT. and scroll down to the bottom for instructions.
Thank you for the quick suggestion! Unfortunately I did already try that. Guessing that is why it works outside the virtual environment?
The code outside of the venv probably uses a different method to communicate with spi. I suggest that you start from scratch. I tested the Inky following the manual install instructions and running from the venv and the code works just fine.