Python code for the Waveshare Touch e-Paper HAT series.
Supported Models:
Model | Product Page | Product Wiki |
---|---|---|
2.13" | Product Page | Product Wiki |
2.9" | Product Page | Product Wiki |
For more information, please search on the official website:
Supported Raspberry Pi Devices:
- All Raspberry Pi devices that have a standard 40-pin GPIO header.
- All Raspberry Pi Compute Modules that have a standard 40-pin GPIO header on a carrier board.
1A+ | 1B+ | 2B | 2B v1.2 | 3A+ | 3B | 3B+ | 4B | 400 | Zero | Zero W/WH | Zero 2 W | CM | CM2 | CM3 | CM3+ | CM4
Supported Operating Systems:
- Raspberry Pi OS Buster (32-bit or 64-bit)
- Raspberry Pi OS Bullseye (32-bit or 64-bit)
Supported Python:
- Python v2: 2.7
- Python v3: 3.7+
$ sudo apt update
$ sudo apt install python-pip
$ sudo apt install python-pil
$ sudo apt install python-numpy
$ sudo apt install python-smbus
$ sudo pip install RPi.GPIO
$ sudo pip install spidev
$ sudo apt update
$ sudo apt install python3-pip
$ sudo apt install python3-pil
$ sudo apt install python3-numpy
$ sudo apt install python3-smbus
$ sudo pip3 install RPi.GPIO
$ sudo pip3 install spidev
$ sudo raspi-config
- Choose
Interface Options
->SPI
->Yes
to enable SPI interface. - Choose
Interface Options
->I2C
->Yes
to enable I2C interface.
You will need to reboot now.
$ sudo reboot now
Install the scripts by cloning them from GitHub:
$ cd ~
$ git clone https://github.com/TORQDL/Waveshare_Touch_e-Paper_HAT.git
Change directory to the examples folder and run an example. For example:
$ cd Waveshare_Touch_e-Paper_HAT/python/examples
$ sudo python3 TP2in13_V3_test.py
⚠️ Please note which e-ink screen you are using. If you are using the 2.9" model, then you should use theTP2in9
scripts, and if you are using the 2.13" model, use theTP2in13
scripts.
TODO: fill in usage information that documents/explains how to utilize these libraries for writing your own applications withoutput to the Waveshare Touch e-Paper HAT series devices.
Pin connections can be found in \lib\epdconfig.py
EPD => Jetson Nano/RPI(BCM) VCC -> 3.3 GND -> GND DIN -> 10(SPI0_MOSI) CLK -> 11(SPI0_SCK) CS -> 8(SPI0_CS0) DC -> 25 ERST -> 17 BUSY -> 24 INT -> 27 TRST -> 22 SDA -> SDA1 SCL -> SCL1
- e_paper_weather_display by AbnormalDistributions
- Touch_e-Paper_HAT by Waveshare