From c38223aa4e390d95f6806151f1280e1f1df170f3 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 12 Sep 2024 09:45:11 +0100 Subject: [PATCH] README: Add SPI CS instructions. --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1652b9e..02e95f8 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,6 @@ Python library for [Inky pHAT](https://shop.pimoroni.com/products/inky-phat), [I # Installation -# Installing - We'd recommend using this library with Raspberry Pi OS Bookworm or later. It requires Python ≥3.7. ## Full install (recommended): @@ -63,8 +61,6 @@ cd inky * Switch to the virtual environment: `source ~/.virtualenvs/pimoroni/bin/activate` * Install the library: `pip install inky` -In some cases you may need to us `sudo` or install pip with: `sudo apt install python3-pip`. - This will not make any configuration changes, so you may also need to enable: * i2c: `sudo raspi-config nonint do_i2c 0` @@ -72,6 +68,15 @@ This will not make any configuration changes, so you may also need to enable: You can optionally run `sudo raspi-config` or the graphical Raspberry Pi Configuration UI to enable interfaces. +Additionally you may need to disable SPI's chip-select to avoid the error: + +``` +Woah there, some pins we need are in use! + ⚠️ Chip Select: (line 8, GPIO8) currently claimed by spi0 CS0 +``` + +This requires the addition of `dtoverlay=spi0-0cs` to `/boot/firmware/config.txt`. + # Usage The library should be run with Python 3.