🛠 Display grayscale images on the e-paper display

PaperDIY Assembly Kit · intermediaire · Configurez le pilote ED047TC1 pour afficher des images bitmap converties en 16 niveaux de gris.

  1. Prepare your Arduino IDE environment with the M5GFX library and the specific driver for the ED047TC1 screen. Ensure the ESP32-S3-WROOM-1-N16R8 module is correctly selected in the tools.
  2. Convert your source image to 1-bit or 16-level grayscale BMP format, resolution 960x540. Use tools like GIMP or a Python script to reduce the palette and adjust the size.
  3. Store the image in the 16MB flash or on the MicroSD card. For flash, use the 'Image to C Array' plugin to generate a data array.
  4. In the code, initialize the display via M5.Display.begin(). Configure the 8-bit parallel interface to optimize data transfer to the screen.
  5. Load the image data into the screen buffer. Beware of refresh times: e-paper is slow, avoid rapid update loops.
  6. Call M5.Display.update() to send data to the panel. Verify that the image displays correctly without gray artifacts.
  7. To deepen your knowledge, explore partial refresh mode to save energy from the 140mAh battery during local updates.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials