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