Example Code for Arduino-Character Display
Last revision 2025/12/27
This article guides users through setting up an Arduino character display using ESP32 and ePaper, including hardware preparation, software installation, and sample code execution.
Hardware Preparation
- FireBeetle ESP32 IoT Microcontroller(SKU: DFR0478) ×1
- FireBeetle Covers-ePaper Black&White Display Module(SKU: DFR0511) ×1
- USB Cable ×1
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE.
- Download and install the DFRobot_ePaper
- Download and install the DFRobot_ILI9488
- For Arduino IDE V1.8.19 (or earlier), install the library manually: How to Add a Library?
Operation Description
| Operation Step | Detailed Description |
|---|---|
| 1. Select Pins | Select D3 (Ink Screen CS) and D6 (Font Library CS) |
| 2. Module Connection | Plug the module into the ESP32 or ESP8266 development board |
Sample Code
Initialize IL3895 e-paper and display 4 different black strings.
#include "Arduino.h"
#include "DFRobot_IL3895_SPI.h"
DFRobot_IL3895_SPI epaper;
#define EPAPER_CS D3
#define Font_CS D6
#define EPAPER_DC D8
#define EPAPER_BUSY D7
void setup(void)
{
Serial.begin(115200); //Select the corresponding pins
epaper.begin(EPAPER_CS, Font_CS, EPAPER_DC, EPAPER_BUSY);
epaper.fillScreen(WHITE);//Clear the screen and display white
epaper.flush(FULL); //Refresh screen display
/*Displays a string, black font*/
epaper.disString(0,0,1,"SPI",BLACK);
epaper.flush(PART);
/*Displays a string, black font*/
epaper.disString(41,12,1,"DFRobot Black&White Ink Screen",BLACK);
epaper.flush(PART);
/*Displays a string, black font*/
epaper.disString(57,40,1,"《+-*/=!@#$%&*(》",BLACK);
epaper.flush(PART);
/*Display large font*/
epaper.disString(61,65,2,"Large Font",BLACK);
epaper.flush(PART);
}
void loop(void)
{
delay(8000);
}
Result
The display includes Chinese characters, ASCII code characters, punctuation.

Was this article helpful?
