readGesture
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
[
returns the gesture readings as an enumeration constant. The possible values for the
enumeration constant are readGesture,timestamp] = readGesture(apds9960obj)none, up,
down, left, or right.
Timestamp is optional.
Examples
Read Gesture from Sensor
Create an Arduino object.
arduinoobj = arduino('COM4', 'Nano33BLE', 'Libraries', 'APDS9960');
Create the sensor object for the sensor.
apds9960obj = apds9960(arduinoobj) [gesture, timestamp] = readGesture(apds9960obj)
The gesture enum returns the gesture.
gesture = Gestures enumeration
down
timestamp = datetime
17-Jun-2021 13:25:38Input Arguments
Output Arguments
Version History
Introduced in R2021b