🛠 Display an image on the e-paper screen

PaperDIY Assembly Kit · debutant · Utiliser la bibliothèque M5GFX pour piloter l'écran 4,7 pouces et afficher du texte simple.

  1. Materials: Assembled PaperDIY, USB cable, PC.
  2. Library: Install « M5GFX » and « M5Unified » via Arduino Library Manager. These libraries handle the specific 8-bit parallel interface.
  3. Initialization: In setup(), include <M5GFX.h>. Create an M5GFX object. Call M5.begin() to initialize the bus and ED047TC1 controller.
  4. Screen Configuration: Set resolution to 960x540. Choose 16-level grayscale mode for better visual quality.
  5. Text Display: In loop(), use gfx.drawString(x, y, « Hello PaperDIY », color). Screen center is approximately (480, 270).
  6. Refresh: E-paper requires explicit refresh command. Use gfx.display() to send data to the panel.
  7. Verification: Image should appear after 1-2 seconds. The 140mAh battery should suffice for several cycles.
  8. Deepening: Explore gfx.fillRect() functions to draw geometric shapes and test different refresh modes (fast vs full).

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials