🛠 Display a grayscale image
M5Stack PaperDIY Complete Kit · debutant · Utilisez la bibliothèque M5GFX pour convertir et afficher une image sur l'écran e-paper 16 nuances.
- Hardware: PaperDIY Kit, MicroSD card formatted in FAT32 containing a PNG/JPG image.
- Software: Install the M5GFX library via the Arduino library manager.
- Code: Use the M5.Display.drawPngFile() function or convert the image to a pixel array if necessary. The screen supports 16 grayscale levels.
- Wiring: Ensure the MicroSD card is correctly inserted into the dedicated slot until it clicks.
- Verification: Upload the sketch. The image should appear on the 960x540 screen. Note that e-paper refresh is slow.
- Deepening: Experiment with partial refresh functions to save the 140 mAh battery.
Other tutorials for this board
← Back to the board 🛠 All tutorials