1. InstallationΒΆ

This guide assumes that you are running Raspbian Stretch.

First enable SPI and configure the UART:

pi@raspberrypi:~$ sudo raspi-config

Selecting:

  • Option 5 - Interfacing
  • P4 - SPI
  • Enable β†’ YES
  • P6 - Serial
  • Would you like a login shell to be accessible over serial? β†’ No
  • Would you like the serial port hardware to be enabled? β†’ 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