🛠 Asynchronous E-Ink Rendering and OTA

M5Paper IoT Development Kit with 4.7-inch Touchscreen e-Ink Display · avance · Architecture multithread pour rafraîchir l'écran sans bloquer le Wi-Fi lors des mises à jour à distance.

  1. Hardware: M5Paper, local server (e.g., Node.js) serving JSON images.
  2. Setup: Configure Wi-Fi and HTTP client. Create two FreeRTOS tasks: one for graphics rendering, one for networking.
  3. Code: Network task downloads image. Rendering task uses a Queue to receive buffers. Implement double-buffering in PSRAM to prepare frame before sending to IT8951.
  4. Commands: Use xTaskCreate to launch tasks. Manage priorities so Wi-Fi doesn't interrupt critical refresh.
  5. Verification: Trigger OTA update. Screen must show smooth progress without Wi-Fi disconnecting due to watchdog.
  6. Deep Dive: Add LZW compression for image data to reduce Wi-Fi bandwidth during frame transfer.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials