The latest development version of this page may be more current than this released 4.2.0 version.

PAJ7620 Gesture Sensor

Browse source code on GitHub

Overview

This sample application gets the output of a gesture sensor (paj7620) using either polling or triggers (depending on CONFIG_APP_USE_POLLING) and outputs the corresponding gesture to the console, each time one is detected.

Requirements

To use this sample, the following hardware is required:

  • A board with I2C support and GPIO to detect external interrutps

  • PAJ7620 sensor

Building and Running

This sample outputs data to the console. It requires a PAJ7620 sensor.

west build -b nucleo_f334r8 samples/sensor/paj7620_gesture

Sample Output

Gesture LEFT
Gesture RIGHT
Gesture UP
Gesture DOWN

See also

Sensor Interface