LilyGO / TTGO-T5-ePaper1.54

55 stars 18 forks source link
epaper esp32

image image

ePaper library for ESP32


https://www.tindie.com/products/microwavemont/epaper-plus-esp32-adb/

Features


Full functions syntax and descriptions can be found in EPD.h and EPDspi.h files.

Full demo application, well documented, is included, please analyze it to learn how to use the library functions.


Connecting the display

To run the demo, attach display module to ESP32. Default pins used are:

The display can be powered from 3.3V or from GPIO pin. See EPDspi.h for configuration options.

If you want to use different pins, change them in EPDspi.h

Using make menuconfig select tick rate 1000 ( → Component config → FreeRTOS → Tick rate (Hz) ) to get more accurate timings


How to build

Configure your esp32 build environment as for esp-idf examples

Clone the repository

git clone https://github.com/loboris/ESP32_ePaper_example.git

Execute menuconfig and configure your Serial flash config and other settings. Included sdkconfig.defaults sets some defaults to be used.

Navigate to ePaper Display DEMO Configuration and set SPIFFS options.

Select if you want to use wifi (recommended) to get the time from NTP server and set your WiFi SSID and password.

make menuconfig

Make and flash the example.

make all && make flash


Prepare SPIFFS image

The demo uses some image and font files and it is necessary to flash the spiffs image

To flash already prepared image components/spiffs_image/spiffs_image.img execute:

make copyfs


You can also prepare different SFPIFFS image and flash it to ESP32.

Files to be included on spiffs are already in components/spiffs_image/image/ directory. You can add or remove the files you want to include.

Then execute:

make makefs

to create spiffs image in build directory without flashing to ESP32

Or execute:

make flashfs

to create spiffs image in build directory and flash it to ESP32


Tested on Waveshare 1.54" ePaper module connected to SparkFun ESP32 Thing board. image image