Skip to main content

Context

This tool is showcased in the project IotaWorkshop

Summary

This is a high level e-paper libaray. It supports QR code displays and allows easy lines of text writing along with right text align. Ideally if used this libaray should be imported to use the helpful class EPD.

Note This works for all waveshare screens when you import it. Simply change the line from,

from waveshare_epd import epd1in54_V2

To whatever screen you have. For instance the 5.83 inch BW screen

from waveshare_epd import epd5in83

Or the color version (bc)

from waveshare_epd import epd5in8bc

Installation

This project depends on Pillow but there are a variety of ways of installing it so I did not mark it as a dependency in the pypi package, you can install it using,

pip install pillow

Simply install this package from the pypi repo

pip install piepd

Command Line Interface

There are a few example displays that can be run through the cli,

epd occipied #Displays text saying the tools is occupied
epd --help #To see altenative displays

Implementation Example

from epd import EPD
epd = EPD()
epd.setFontSize(21)
epd.drawText("Hello world",draw=False) #Draws this text on the screen
epd.drawText("Left",draw=False) #Does not display yet until draw=True

#The following line will right align the text and put it on the previous line
epd.drawText("Right",right=True,overlap=True,draw=True)

#Once you are completly done using the dislplay run
epd.close()

Wiring

Board pin name Board pin RPi pin name
VCC 1 3v3
GND 6 GND
DIN 19 GPIO10, MOSI
CLK 11 GPIO11, SCKL
CS 24 GPIO8, CE0
DC 22 GPIO25
RST 11 GPIO17
BUSY 18 GPIO24

Metadata

Release files for piepd 0.0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piepd 0.0.3.6
File Size Uploaded Provenance
piepd-0.0.3.6.tar.gz 177.4 kB Without provenance Details

Release files / piepd-0.0.3.6.tar.gz

Download URL piepd-0.0.3.6.tar.gz
Size 177.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dbdcf8f294f8da38c8c48b587bb0b806fc6deac38bb24d80a780644d70f87520
BLAKE2b-256 checksum
How to use checksums
4cead164e4e0a3635989b444118c04cdc9765b5814db838dc089a3b63e62ff98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Security for piepd 0.0.3.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page