1.54-inch E-paper Display

From
Revision as of 18:01, 12 December 2025 by Ows wiki (talk | contribs) ([Code 1])
Jump to: navigation, search

Support

1.54-inch E-paper Display

EPaper-Display-1.54.PNG

Setup

Install Seeed GFX Library
https://seeed-studio.github.io/Seeed_GFX/

This library has same function as TFT library and no compatible with it. If you have installed TFT library or other similary display libraries, please uninstall it first.


Create a driver.h file and paste the following code into it.

Seeed GFX Library - Online Configuration Generator
https://seeed-studio.github.io/Seeed_GFX/

// driver.h file 
#define BOARD_SCREEN_COMBO 505 // 1.54 inch monochrome ePaper Screen (SSD1681)
#define USE_XIAO_EPAPER_BREAKOUT_BOARD

Sketch -> Include Library -> Add .ZIP
Seeed_GFX-master.zip

Upload the Code
driver.h
HelloWorld.ino


Liens externes

https://www.seeedstudio.com/1-54-Monochrome-ePaper-Display-with-200x200-Pixels-p-5776.html Shop

https://wiki.seeedstudio.com/XIAO-eInk-Expansion-Board/ Wiki

Exemples

/examples/ePaper/Basic

1 Bitmap: Display a bitmap image.
2 Clock: Display a clock.
3 Clock_digital: Display a digital clock.
4 HelloWorld:
5 Shape: Display different sizes of words and shape randomly.

[Code 1]

#include "TFT_eSPI.h"
#include "image.h"

#ifdef EPAPER_ENABLE
EPaper epaper;
#endif

void setup()
{
#ifdef EPAPER_ENABLE
  Serial.begin(115200);
  delay(2000);
  Serial.println("1.54\" E-Paper Bitmap Display Example");
  
  epaper.begin();
  
  // Clear screen to white
  epaper.fillScreen(TFT_WHITE);
  epaper.update();
  delay(1000);
  
  // Display bitmap image using drawBitmap API
  // drawBitmap(x, y, bitmap_data, width, height, color)
  epaper.drawBitmap(0, 0, gImage_1inch54, 200, 200, TFT_BLACK);
  epaper.update();
  
  Serial.println("Bitmap displayed successfully");
  
  // Put display to sleep to save power
  epaper.sleep();
#else
  Serial.begin(115200);
  Serial.println("EPAPER_ENABLE not defined. Please select the correct setup file.");
#endif
}

void loop()
{
  // Nothing to do here
}

onglet driver.h

// driver.h file 
#define BOARD_SCREEN_COMBO 505 // 1.54 inch monochrome ePaper Screen (SSD1681)
#define USE_XIAO_EPAPER_BREAKOUT_BOARD

[Code 2]