Skip to content

Commit

Permalink
README: Add SPI CS instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 12, 2024
1 parent da5c464 commit c38223a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -63,15 +61,22 @@ 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`
* spi: `sudo raspi-config nonint do_spi 0`

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.
Expand Down

0 comments on commit c38223a

Please sign in to comment.