Gesture recognition

With the gesture recognition, 9 different hand movements can be detected.

Makecode

The gesture control is already integrated in the Grove package. After initializing Grove gesture recognition at startup, there are two possible ways to read the sensor's values:

  • Using the when grove gesture...
  • event block.
  • Within the loop, by comparing and querying the gestures in an if-then statement. E.g. if read gesture = right, then...
  • .