Skip to content

thelazt/waveshare-9.7inch-e-paper-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ePaper example

Proof-of-concept Arduino sketch Waveshare 9.7 inch e-Paper Display (SPI) with font rendering.

Tested on ESP32.

Build instructions

Make sure to check out project including submodules

git clone --recursive https://github.com/thelazt/waveshare-9.7inch-e-paper-demo.git

Load sketch in Arduino and run.

(Ugly symlinks in sketch directory due to the lack of real folder support in Arduino)

Demo setup

Example Wiring

This example was tested using a DFRobot FireBeetle ESP32 connected to the HAT via SPI (see "Pinouts")

[ESP32] --- [ePaper HAT]
VCC     --- 5V   (red)
GND     --- GND  (black)
GPIO 19 --- MISO (blue)
GPIO 23 --- MOSI (yellow)
GPIO 18 --- SCK  (orange)
GPIO 25 --- CS   (green)
GPIO 26 --- RST  (white)
GPIO 27 --- HRDY (purple)

Add custom Fonts

Add required fonts (in TrueType Format) into folder fonts.

Example: To build DejaVuSans in 12pt run

cd epaper/fonts
./addfont.sh DejaVuSans.ttf 12
Importing DejaVuSans.ttf to DejaVuSans12.dat
Done: 5208 unique glyphs.
Font originally had 5208 glyphs.
After filtering, 193 glyphs remain.
Original size is 10168 bytes
Press ctrl-C at any time to stop.
Results are saved automatically after each iteration.
Limit is 50 iterations
iteration 1, size 7202 bytes, speed 88980 B/min
iteration 2, size 6699 bytes, speed 104070 B/min
[...]
iteration 49, size 5426 bytes, speed 7689 B/min
iteration 50, size 5426 bytes, speed 7689 B/min
Wrote DejaVuSans12.c
Created DejaVuSans12.c!

About

Demonstration of Waveshare 9.7" ePaper with Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages