Adding a Waveshark three color 2.7inch ePaper HAT
Board version: |
Pi 3B+ Rev 1.3 |
Memory: |
1 GB |
Rasbian version: |
2019-06-20-raspbian-buster-lite |
Display type: |
2inch7b (b is for 3 color) |
$ sudo raspi-config
- Interface options
- SSH ON
- SPI & I2C ON
- All other interfaces OFF
-
Static ip-address
$ sudo nano /etc/dhcpcd.conf
-
Turn off BT and WiFi
$ sudo nano /boot/config.txt
# turn wifi and bluetooth off
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
- Reboot
- Update and Upgrade
Check if SPI & I2C are working
$ ls /dev/i2c* /dev/spi*
It will give the following result:
/dev/i2c-1 /dev/spidev0.0 /dev/spidev0.1
Check Python versions, if needed
- Python 2: python --version
- Python 3: python3 --version
Install PIP for Python3
PIP is a package installer for Python. There is no PIP on the Raspbian Lite versions:
$ sudo apt-get install python3-pip
Install PIL for Python3
Python Imaging Library (PIL) adds an image object to your Python interpreter.
You can load images from a variety of file formats, and apply a rich set of image operations to them:
$ sudo apt-get install python3-pil
Install NumPy for Python3
NumPy is a package for scientific computing with Python:
$ sudo apt-get install python3-numpy
Is this used by the examples? I don't see any references in the code...
Install RPi.GPIO for Python3
This package provides a class to control the GPIO on a Raspberry Pi:
$ pip3 install RPi.GPIO
Install spidev for Python3
This project contains a python module for interfacing with SPI devices from user space via the spidev linux kernel driver:
$ pip3 install spidev
ALWAYS go to GitHub for the latest example scripts!
The Waveshark website does NOT have the latest scripts.
github.com/waveshare/e-Paper