Skip to main content

Gesture Sensor

Back to article list

Note: Gesture sensor values are assigned as follows:
0 for None, 1 for Right, 2 for Left, 3 for Up, 4 for Down, 5 for Forward, 6 for Backward, 7 for Clockwise, 8 for Anticlockwise, 9 for Wave.

Sample Code

Hardware Connection: Connect the Gesture Sensor to the I2C1 port of the MATRIX Mini R4.

Result: The OLED will show RIGHT and LEFT on hand gestures.