🛠 Moteur de gestes personnalisés GT911

M5Paper IoT Development Kit with 4.7-inch Touchscreen e-Ink Display · avance · Interprétation avancée des données tactiles capacitives multi-points pour détecter des gestes complexes.

  1. Hardware: M5Paper, serial interface for logs.
  2. Setup: Use M5GFX or native GT911 library. Enable multi-touch mode.
  3. Code: Read raw touch coordinates (x, y, pressure, id). Store a 10-point history for each active finger.
  4. Commands: Implement a curve detection algorithm (simplified Ramer-Douglas-Peucker) to identify shapes (circle, cross, fast swipe) by analyzing angle variation between consecutive vectors.
  5. Verification: Draw a circle on screen. Program must print 'GESTURE_CIRCLE' on serial monitor.
  6. Deep Dive: Add variable pressure recognition to simulate 'long press' or 'force' actions on UI elements.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials