🛠 Interacting with the touch screen

M5Paper: IoT Development Kit with Tactile e-Ink Display · debutant · Détectez les touches sur la couche capacitive GT911 et affichez les coordonnées.

  1. Hardware: M5Paper, USB cable.
  2. Software: Arduino IDE with M5EPD library.
  3. Configuration: Select M5Paper board and serial port.
  4. Code: Include <M5EPD.h>. In setup(), call M5.begin(). In loop(), read touch data via M5.EPD.GetTouchData().
  5. Logic: If touch is detected, get X and Y coordinates. Display them using M5.EPD.DrawCenterString() for immediate visual feedback.
  6. Upload: Flash the code.
  7. Verification: Touch the screen with a finger. Displayed coordinates should match finger position. Note that e-Ink doesn't refresh instantly like LCD; use partial refreshes for better responsiveness.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials