Skip to content

TORQDL/Waveshare_Touch_e-Paper_HAT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Waveshare Touch e-Paper HAT

About

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:

Setup

Requirements

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+

For Python v2

$ 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

For Python v3

$ 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

Enable SPI and I2C

$ 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 Python Scripts

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

Usage

⚠️ Please note which e-ink screen you are using. If you are using the 2.9" model, then you should use the TP2in9 scripts, and if you are using the 2.13" model, use the TP2in13 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

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

Thanks

About

Example code for Waveshare Touch e-Paper HAT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%