🛠 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.

  1. Hardware: PaperDIY Kit, MicroSD card formatted in FAT32 containing a PNG/JPG image.
  2. Software: Install the M5GFX library via the Arduino library manager.
  3. Code: Use the M5.Display.drawPngFile() function or convert the image to a pixel array if necessary. The screen supports 16 grayscale levels.
  4. Wiring: Ensure the MicroSD card is correctly inserted into the dedicated slot until it clicks.
  5. Verification: Upload the sketch. The image should appear on the 960x540 screen. Note that e-paper refresh is slow.
  6. Deepening: Experiment with partial refresh functions to save the 140 mAh battery.

Other tutorials for this board

← Back to the board 🛠 All tutorials