• sales

    +86-0755-88291180

4.26inch e-Paper (G) User Guide

Features

  • No backlight required; can retain the last displayed content for a long time after power-off
  • Very low power consumption, mainly only consumes power during refresh
  • Provides comprehensive supporting documentation: driver board schematic, Raspberry Pi / Jetson Nano / Arduino / STM32 / ESP32 example programs, etc.
  • The following applies only to the module version (with driver HAT)
    • Designed based on the Raspberry Pi 40PIN GPIO interface, suitable for Raspberry Pi, Jetson Nano
    • Reserved SPI communication interface for easy connection to master controllers such as Raspberry Pi / Arduino / STM32 / ESP32
    • Onboard level shifter chip, compatible with 3.3V and 5V logic levels

Specifications

ParameterValue
Operating VoltageRaw screen version: 3.3V
Module version: 3.3V/5V
Communication Interface3-wire SPI, 4-wire SPI
Overall DimensionsRaw screen version: 105.33 × 62.37 × 0.91 (mm)
Module version: 107.00 × 64.00 (mm)
Display Size92.80 × 55.68 (mm)
Dot Pitch0.116 × 0.116 (mm)
Resolution800 × 480 pixels
Display ColorsRed, Yellow, Black, White
Gray Scale2
Full Refresh Time20s
Refresh Power Consumption< 90mW
Sleep Current< 0.01uA (near 0)
Viewing Angle> 170°
  • Refresh Time: The refresh time is based on experimental test data. The actual refresh time may vary; please refer to the actual performance. Flickering during the full refresh process is normal.
  • Refresh Power Consumption: Power consumption data is based on experimental test data. Actual power consumption may vary due to the presence of the driver board and different usage conditions; please refer to the actual performance.
  • Refreshing in low-temperature environments may cause color shift. The screen should be left stationary for 6 hours at 25°C before refreshing.

Communication Interface


  • CSB (CS): Slave chip select signal, active low. The chip is enabled when this signal is low.
  • SCL (SCK/SCLK): Serial clock signal.
  • D/C (DC): Data/Command control signal. A low level indicates a command is being written; a high level indicates data/parameters are being written.
  • SDA (DIN): Serial data signal.
  • Timing: CPOL=0, CPHA=0, i.e., SPI mode 0.
  • Note: For specific information regarding SPI communication, you can search online for more details.

Working Principle

The e-Paper used in this product employs "Microencapsulated Electrophoretic Display" technology for image display. The basic principle involves charged nanoparticles suspended in a liquid migrating under the influence of an electric field. The e-Paper display relies on reflecting ambient light to show patterns and does not require a backlight. Under ambient light, the e-Paper display is clearly visible, with a viewing angle approaching 180°. Therefore, e-Paper displays are ideal for reading.

Programming Principle

For four-color e-Paper, we can understand it by analogy with a black‑and‑white 4‑grayscale display, but there are differences. To save memory, the e‑Paper compresses pixels:

  • Black: 00b
  • White: 01b
  • Yellow: 10b
  • Red: 11b Let's take 4 pixels as an example:

    Writing 0x1B into register 0x10 sets the four pixels on the e-Paper screen to black, white, yellow, and red respectively.

Precautions

NOTE
  1. Avoid powering the screen for extended periods. When the screen is not refreshing, set it to sleep mode or power it off. Otherwise, prolonged exposure to high voltage can damage the film and is irreparable.
  2. When using the e-Paper, it is recommended to set a refresh interval of at least 180 seconds and perform a refresh at least once every 24 hours. If the e-Paper will not be used for a long time, store it with a white image displayed. (Refer to the datasheet for specific storage environment requirements.)
  3. The FPC cable of the screen is delicate. Please note: Do not bend the cable perpendicular to the screen to avoid tearing; do not repeatedly bend the cable excessively to avoid breakage; do not bend the cable towards the front of the screen to avoid disconnecting the cable from the panel. It is recommended to secure the cable during development and debugging.
  4. The e-Paper screen is relatively fragile. Avoid dropping, impact, or pressing forcefully.
WARNING
  1. After the screen enters sleep mode, any image data sent will be ignored. Only re-initialization can restore normal refresh functionality.
  2. If the generated image data displays incorrectly on the screen, check if the image size settings are correct. Try swapping the width and height settings and test again.
  3. The operating voltage required for the e-Paper is 3.3V. If you purchased the raw screen and need to integrate it into a 5V environment when designing the circuit, it is recommended to implement level shifting.
TIP

We recommend that customers test the screen using the example programs we provide with the corresponding development board upon receiving it.

Image Processing

  • Image preparation and conversion for multi‑color e-Paper

Image Preparation

Preparation

  • Required software: Adobe PhotoShop CC, Paint

Introduction

  • The Floyd‑Steinberg dithering algorithm is very suitable for displaying rich gradation when only a few colors are available. This allows for more color combinations and better shadow rendering of the original image. It is especially suitable for various use scenarios of e-Paper screens.
  • The following describes how to convert a normal image into a Floyd‑Steinberg dithered image.
  • If you are interested in the actual algorithm, you can look at our porting for ESP32 and ESP8266. Here, no further elaboration will be given.

Operation steps

  • Preparation: Download Color table to your PC, and extract it to get the following file, we need to use N-color.act or 4-color.act6-color.act.

    1. Create a new Photoshop project, set the width and height according to the actual resolution of the e-Papre screen, and use RGB color in the color mode. If the screen resolution used is 800*480, change the width to 800 pixels and the height to 480 pixels.

    2. Prepare the corresponding materials, copy them into the project, and adjust parameters such as size and contrast (similar to the steps involved in general Photoshop image processing).

    3. Select File -> Save for Web in the format used for the Web and device.

    4. Select Load Color Table as shown below. Load the Color Table provided in the Preparation section.

    5. For seven-color pictures, load N-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.
      For four-color pictures, load 4-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.
      For six-color pictures, load 6-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.

    6. Open the GIF file with Paint, save it as a 24-bit BMP picture.

    7. The image is now ready. It can be used on the Raspberry Pi or e‑Paper Shield module via TF card, or converted into an array for use with other embedded devices as described in the next section.

Image Data Conversion

Download Programs

NOTE

This application is provided for your convenience and is open source, and our company does not provide technical support for it

Bug Resolution

  • If you are using Windows 10/11 and have not installed VS (Microsoft Visual Studio) or other Microsoft development tools, you may encounter the following errors when using this program:


  • This indicates that your computer is missing these two components. Solutions:
    1. Install VS (Microsoft Visual Studio) or other Microsoft development tools (e.g., Visual C++ Redistributable).
    1. Use the two component files

      Place these two files in the directory C:\Windows\System32, then restart your computer.

Conversion Steps

  • Place the prepared image(s) and the corresponding .exe application in the same folder (multiple images can be placed).
  • Drag and drop the image onto the .exe file; the program will convert the image into a .c file with a fixed name.
  • Double‑click the .cmd file; the program will convert all images of the correct size in the folder into .c files with corresponding names.
  • Single‑image conversion for four‑color (click image to see demonstration):

  • Multiple‑image conversion for four‑color (click image to see demonstration):

  • Single‑image conversion for seven‑color (click image to see demonstration):

  • Multiple‑image conversion for seven‑color (click image to see demonstration):


Working with Raspberry Pi

Hardware Connection

  • When connecting to the Raspberry Pi, you can directly plug the board onto the 40PIN header, ensuring the pins are aligned correctly.
  • If using a 9PIN cable, please refer to the pin mapping table below:
    • Raspberry Pi pin mapping
      e-PaperRaspberry Pi Pin Mapping
      BCM2835 PinBoard Physical Pin Number
      VCC3.3V3.3V
      GNDGNDGND
      DINMOSI19
      CLKSCLK23
      CSCE024
      DC2522
      RST1711
      BUSY2418
      PWR1812

Enabling the SPI Interface

  • Open the Raspberry Pi terminal and enter the following command to access the configuration interface:

    sudo raspi-config

    Select Interfacing Options -> SPI -> Yes to enable the SPI interface


  • Reboot the Raspberry Pi:

    sudo reboot
  • Check /boot/config.txt, you should see that dtparam=spi=on has been written


  • To ensure SPI is not occupied, it is recommended to temporarily disable other driver overlays. Use ls /dev/spi* to check the SPI occupancy. The terminal output /dev/spidev0.0 and /dev/spidev0.1 indicates that SPI is functioning normally.


Running the C Example

  • Install the lg library

    #Open the Raspberry Pi terminal and run the following commands:
    wget https://github.com/joan2937/lg/archive/master.zip
    unzip master.zip
    cd lg-master
    make
    sudo make install
    # For more information, please refer to the source code: https://github.com/gpiozero/lg
    Install gpiod library (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    sudo apt-get update
    sudo apt install gpiod libgpiod-dev
    Install BCM2835 (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
    tar zxvf bcm2835-1.71.tar.gz
    cd bcm2835-1.71/
    sudo ./configure && sudo make && sudo make check && sudo make install
    # For more information, please refer to the official website: http://www.airspayce.com/mikem/bcm2835/
    Install wiringPi (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    sudo apt-get install wiringpi
    #For Raspberry Pi systems after May 2019 (those earlier may not require execution), an upgrade may be necessary:
    wget https://files.waveshare.com/wiki/common/wiringpi-latest.deb
    sudo dpkg -i wiringpi-latest.deb
    gpio -v
    # Run gpio -v and version 2.52 will appear. If it does not appear, there is an installation error.

    #Bullseye branch system uses the following command:
    git clone https://github.com/WiringPi/WiringPi
    cd WiringPi
    ./build
    gpio -v
    # Run gpio -v and version 2.60 will appear. If it does not appear, there is an installation error.
  • Download the demo (skip if already downloaded)

    wget https://files.waveshare.com/wiki/4.26inch_e-Paper_G/4.26inch_e-Paper_G.zip
    unzip 4.26inch_e-Paper_G.zip -d 4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Alternative extraction method
    git clone https://github.com/waveshare/e-Paper.git
    cd e-Paper/E-paper_Separate_Program/4.26inch_e-Paper_G/RaspberryPi_JetsonNano
    Download the program via GitHub (alternative method, skip if already downloaded)
    • Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
      sudo apt-get install p7zip-full
      7z x 4.26inch_e-Paper_G.zip -O./4.26inch_e-Paper_G
      cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
  • Compile the program (Note: -j4 uses 4 threads for compilation; you can modify the number)

    # It is now in 4.26inch_e-Paper_G/RaspberryPi_JetsonNano
    cd c
    sudo make clean
    sudo make -j4
  • Run the program

    sudo ./epd

Running the Python Example

  • Install libraries

    sudo apt-get update
    sudo apt-get install python3-pip
    sudo apt-get install python3-pil
    sudo apt-get install python3-numpy
    sudo pip3 install spidev
    Install libraries (python2)
    sudo apt-get update
    sudo apt-get install python-pip
    sudo apt-get install python-pil
    sudo apt-get install python-numpy
    sudo pip install spidev
    Install gpiozero library (pre-installed by default, if not, install using the following commands)
    sudo apt-get update
    # python3
    sudo apt install python3-gpiozero
    # python2
    sudo apt install python-gpiozero
  • Download the demo (skip if already downloaded)

    wget https://files.waveshare.com/wiki/4.26inch_e-Paper_G/4.26inch_e-Paper_G.zip
    unzip 4.26inch_e-Paper_G.zip -d 4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Alternative extraction method
    sudo apt-get install p7zip-full
    7z x 4.26inch_e-Paper_G.zip -O./4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Download the program via GitHub (alternative method, skip if already downloaded)
    • Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
      git clone https://github.com/waveshare/e-Paper.git
      cd e-Paper/E-paper_Separate_Program/4.26inch_e-Paper_G/RaspberryPi_JetsonNano
  • Run the program

    # Make sure it is in 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    cd python/examples/
    python3 epd_5in0_test.py


Working with Arduino

Hardware Connection

  • Connect using the 9PIN cable. Refer to the pin mapping table below:
    • Arduino pin mapping
      e-PaperArduino UNOMega2560
      VCC5V5V
      GNDGNDGND
      DIND11D51
      CLKD13D52
      CSD10D10
      DCD9D9
      RSTD8D8
      BUSYD7D7
      PWRD6D6

Installing the IDE

Arduino IDE Windows Installation Tutorial

Running the Program

  • In the Resources section download the demo package, then unzip it and enter the 4.26inch_e-Paper_G directory to see the following contents:

  • Open the demo: 4.26inch_e-Paper_G\Arduino_R4\Arduino_R4.ino

  • In the Arduino IDE toolbar (Tools), select the corresponding Board and Port:

  • Finally, click Upload. A successful upload is shown below (Arduino 1.8.13):


Working with Jetson Nano

Hardware Connection

  • The 40PIN header on the Jetson Nano is compatible with the Raspberry Pi's 40PIN header, and it provides a Jetson.GPIO library whose API is consistent with the Raspberry Pi's RPI.GPIO library. Therefore, the pin numbers used here are the same as those for the Raspberry Pi. When using the 40PIN interface, you can directly plug the module into the 40PIN header of the Jetson Nano.

  • If using a 9PIN cable, please refer to the pin mapping table below:

    Jetson Nano pin mapping

    e-PaperJetson Nano Developer Kit
    BCM2835 PinBoard Physical Pin Number
    VCC3.3V3.3V
    GNDGNDGND
    DIN10(SPI0_MOSI)19
    CLK11(SPI0_SCK)23
    CS8(SPI0_CS0)24
    DC2522
    RST1711
    BUSY2418
    PWR1812

Running the C Example

  • Download the demo (skip if already downloaded)

    wget https://files.waveshare.com/wiki/4.26inch_e-Paper_G/4.26inch_e-Paper_G.zip
    unzip 4.26inch_e-Paper_G.zip -d 4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Alternative extraction method
    sudo apt-get install p7zip-full
    7z x 4.26inch_e-Paper_G.zip -O./4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Download the program via GitHub (alternative method, skip if already downloaded)
    • Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
      git clone https://github.com/waveshare/e-Paper.git
      cd e-Paper/E-paper_Separate_Program/4.26inch_e-Paper_G/E-RaspberryPi_JetsonNano
  • Compile the program (Note: -j4 uses 4 threads for compilation; you can modify the number)

    # It is now in 4.26inch_e-Paper_G/RaspberryPi_JetsonNano
    cd c
    sudo make clean
    sudo make JETSON -j4
  • Run the program

    sudo ./epd

Running the Python Example

  • Install libraries

    sudo apt-get update
    sudo apt-get install python3-numpy
    sudo apt-get install python3-pip
    sudo pip3 install Jetson.GPIO
  • Download the demo (skip if already downloaded)

    wget https://files.waveshare.com/wiki/4.26inch_e-Paper_G/4.26inch_e-Paper_G.zip
    unzip 4.26inch_e-Paper_G.zip -d 4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Alternative extraction method
    sudo apt-get install p7zip-full
    7z x 4.26inch_e-Paper_G.zip -O./4.26inch_e-Paper_G
    cd 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    Download the program via GitHub (alternative method, skip if already downloaded)
    • Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
      git clone https://github.com/waveshare/e-Paper.git
      cd e-Paper/E-paper_Separate_Program/4.26inch_e-Paper_G/E-RaspberryPi_JetsonNano
  • Run the program

    # Make sure it is in 4.26inch_e-Paper_G/RaspberryPi_JetsonNano/
    cd python/examples/
    python3 epd_5in0_test.py


Working with STM32

Hardware Connection

Use a 9PIN cable to connect, please refer to the pin corresponding table below:

STM32 Pin Mapping

e-PaperSTM32
VCC3.3V
GNDGND
DINPA7
CLKPA5
CSPA4
DCPA2
RSTPA1
BUSYPA3
PWRPA6

Running the Program

  • Click to download the demo package, then unzip it and enter the 4.26inch_e-Paper_G directory to see the following contents:

  • Use Keil to open epd-demo.uvprojx in the 4.26inch_e-Paper_G\STM32-F103ZET6\MDK-ARM directory
  • Open the Keil compile toolbar (usually already open):

  • Click Build.

  • Ensure a suitable programmer is connected, then click Load to download the program to the microcontroller.


Working with ESP32

Hardware Connection

ESP32 Pin Mapping

e-PaperESP32ESP32-S3
VCC3.3V3.3V
GNDGNDGND
DINIO14IO11
CLKIO13IO12
CSIO15IO10
DCIO27IO13
RSTIO26IO14
BUSYIO25IO4
PWRIO33IO5

Environment Configuration

Online installation requires the use of VPN software, while offline installation does not require the use of VPN software

Running the Program

  • In the Resources section download the demo package, then unzip it and enter the 4.26inch_e-Paper_G directory to see the following contents:

  • Open the demo: 4.26inch_e-Paper_G\ESP32\ESP32.ino or 4.26inch_e-Paper_G\ESP32\ESP32-S3.ino


  • In the Arduino IDE toolbar (Tools), select the corresponding Board and Port:

  • If using a core like the ESP32-S3 with PSRAM, please enable PSRAM

  • Finally, click Upload. A successful upload is shown below (Arduino 2.2.1):


Resources

1. Hardware Resources

Driver Board Design Files

2. Technical Manuals

3. Demo

4. Software Tools

5. Other Resource Links

Support

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)

Email: services01@spotpear.com



TAG: Luckfox Raspberry Pi Pico 2 RP2350 Core2350B Core Board PSRAM Arduino 0.96inch RGB OLED Raspberry Pi 5 PD Power Modbus-Protocol-Specification User Guide ESP32-S3 AI 3.97-inch e-Paper Ink Screen 3.97inch Display AIoT Development Board Deepseek Raspberry Pi Pico Buzzer Raspberry Pi display Raspberry Pi 5 POE PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE Pi5 Double 2280 Raspberry Pi Robot Dog Wavego Pro 12 quadruped ESP32 ESP-NOW color recognition and self-balancing control Industrial CAN FD RS232/RS485 bidirectional converter CAN2.0A/B SIM8230G M2 3G/4G/5G/GNSS/GPS Sub-6G PCIe M.2 Moudle For LTE-A/NSA/SA For DFOTA /VoLTE For SIMCOM Raspberry Pi 5 PCIe to 4-CH M.2 NVMe 4-Ports SSD Board HAT Pi5 Four-Times ESP32 C6 AI 0.85inch Development Board 0.85 inch DeepSeek RGB surround light Dual mike Raspberry Pi Autofocus Camera RP2040-PiZero Dual-MCU-Board Raspberry Pi 5 PoE MINI HAT(G) Power over RJ45 Ethernet 802.3af/at Moudle for Pi5 Raspberry Pi 12.3 inch DSI MIPI Display TouchScreen LCD 720x1920 Luckfox Lyra Omni3576 RK3576