planetx.gesture
Appearance
Reads the gesture made over a PlanetX gesture sensor (such as EF05020) since the last call, as seen facing the sensor with its socket on the left, as a number from 1 to 9, or 0 if there was none.
Function
Synopsis
planetx.gesture()
Returns
A number corresponding to a gesture relative to the sensor as pictured below:
- right,
- left,
- up,
- down,
- forward,
- backward,
- clockwise,
- counter-clockwise,
- wave,
or 0, if no gesture has been detected since the last call.

An error is raised if no sensor answers.