RealNobser / EPD_Driver_GU_small

Hardware driver for small-sized screens, with built-in images for test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Installation

Download the ZIP file of this library and install as instructed in Arduino or Energia.

Hardware Setup

  • If using Launchpad (Tiva-C) with TM4C123 or MSP432P401R, the SPI pins are by default:
// Using EXT3
    SCK = 7     // BROWN
    BUSY = 11   // RED
    D/C = 12    // ORANGE
    RST = 13    // YELLOW
    MOSI = 15   // BLUE
    ECSM = 19   // GRAY
    
 // Using EXT2
    SCK = 7    
    BUSY = 8  
    D/C = 9
    RST = 10
    MOSI = 15
    ECSM = 19
    PNLON = 11
    BS = 17
  • If using Arduino M0 Pro,
  SCK = 13 
  BUSY = 4  
  D/C = 5
  RST = 6
  MOSI = 12
  ECSM = 8
  PNLON = 11	only for EXT2
  BS = 9	only for EXT2
  • If using Raspberry Pi Pico,
  SCK = 18 
  BUSY = 13  
  D/C = 12
  RST = 11
  MOSI = 19
  ECSM = 17
  PNLON = 8	only for EXT2
  BS = 7	only for EXT2
  • If using ESP32DevKitC,
  SCK = 18 
  BUSY = 27  
  D/C = 26
  RST = 25
  MOSI = 23
  ECSM = 32
  PNLON = 16	only for EXT2
  BS = 17	only for EXT2

For further wiring guidance, check out the User Manuals of EXT2 and EXT3.

EPD_Driver Demo

First, a BW(black and white) image is flashed.

After a second, a BWR (black, white, red) image follows.

  • The demo currently includes sample images for all the supported EPD sizes mentioned above. To implement global update demo on these other sizes, update the following lines
//------------------------------------------------------------
// DEMO Image Set <Comment out when in User Mode>
// Screen Size: 154, 213, 266, 271, 287, 370, 420, 437
#define SCREEN 271
#include "globalupdate_src/demoImageData.h"
// User Mode Image Set
//#include "globalupdate_src/userImageData.h"
  • Then select the appropriate EPD size, development board and extension kit:
  // EPD_Driver epdtest(eScreen_EPD_271, boardLaunchPad_EXT3);
  // EPD_Driver epdtest(eScreen_EPD_271, boardArduinoM0Pro_EXT2);
  EPD_Driver epdtest(eScreen_EPD_271, boardRaspberryPiPico_RP2040_EXT3);
  // EPD_Driver epdtest(eScreen_EPD_271, boardRaspberryPiPico_RP2040_EXT2);

Tech Support

About

Hardware driver for small-sized screens, with built-in images for test


Languages

Language:C++ 65.8%Language:C 34.2%