/e-Paper

Waveshare e-Paper C++ display (SPI) driver for the Raspberry Pi.

Primary LanguageC

e-Paper

Currently in beta statium!

Preamble

Originally forked from the waveshare/e-Paper repository.

This repository has been reduced to work with the Waveshare 5.83'' e-Paper display on a Raspberry Pi. Support for other displays has been removed completely. Moreover it's meant to support only the C(++) programming language using the bcm2835 library instaed of Wiring Pi.

Prerequisites

  • git: sudo apt install git

  • bcm2835 lib

    • Download latest bcm2835-1.XX.tar.gz.

       tar zxvf bcm2835-1.XX.tar.gz
       cd bcm2835-1.XX
       ./configure
       make
       sudo make check
       sudo make install
      
  • libconfig: sudo apt install libconfig++-dev

  • ImageMagick (recommended): sudo apt install imagemagick

Compile

Use the (master) Makefile provided in the src/ directory. There are other Makefile files whithin subdirectories which will get invoked automatically by the (master) Makefile.

cd src
make
sudo ./epd

To-Dos

  • Move EPD_5IN83_* functions to the MonochromeDisplay class.
  • Create a driver class to handle SPI communication.
    • Make the class a singleton
    • Make the SPI pins configurable
  • Create conditional DEBUG output information.
  • Extend documentation.

Bugs

  • Destructor code is missing (Memory leaks may occur!).
    • MonochromeBitmap
    • MonochromeScreen
    • MonochromeDispaly