1. Installation

This guide assumes that you are running Raspbian Stretch.

First enable SPI:

pi@raspberrypi:~$ sudo raspi-config


  • Option 5 - Interfacing
  • P4 - SPI
  • Enable → YES

Then exit raspi-config.

Next update the package lists:

pi@raspberrypi:~$ sudo apt-get update

Then install the Raspbian dependencies:

pi@raspberrypi:~$ sudo apt-get install python-pip python-dev libfreetype6-dev libjpeg-dev build-essential

Finally, install DesignSpark.Pmod and dependencies from PyPi:

pi@raspberrypi:~$ sudo pip install designspark.pmod