microbit.accelerometer.getGesture
Appearance
Returns the last recorded gesture event from the device. Possible gestures are defined as the following values:
- microbit.ACCELEROMETER_EVT_NONE
- microbit.ACCELEROMETER_EVT_TILT_UP
- microbit.ACCELEROMETER_EVT_TILT_DOWN
- microbit.ACCELEROMETER_EVT_TILT_LEFT
- microbit.ACCELEROMETER_EVT_TILT_RIGHT
- microbit.ACCELEROMETER_EVT_FACE_UP
- microbit.ACCELEROMETER_EVT_FACE_DOWN
- microbit.ACCELEROMETER_EVT_FREEFALL
- microbit.ACCELEROMETER_EVT_2G
- microbit.ACCELEROMETER_EVT_3G
- microbit.ACCELEROMETER_EVT_6G
- microbit.ACCELEROMETER_EVT_8G
- microbit.ACCELEROMETER_EVT_SHAKE
Function
Synopsis
microbit.accelerometer.getGesture()
Arguments
None.
Returns
A number.