SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorPawA350::MotionData Struct Reference

Motion Delta Data. More...

#include <SensorPawA350.hpp>

Public Attributes

int8_t delta_x
 X-axis movement (-128 to +127 counts)
 
int8_t delta_y
 Y-axis movement (-128 to +127 counts)
 

Detailed Description

Motion Delta Data.

Stores the movement delta in X and Y directions. Values are 8-bit signed integers in two's complement, representing the number of counts moved since the last reading.

Note
The deltas are cleared when read. PixArt recommends reading Delta_X (0x03) and Delta_Y (0x04) registers sequentially in a single I2C transaction.

Definition at line 182 of file SensorPawA350.hpp.

Member Data Documentation

◆ delta_x

int8_t SensorPawA350::MotionData::delta_x

X-axis movement (-128 to +127 counts)

Definition at line 183 of file SensorPawA350.hpp.

Referenced by SensorPawA350::getMotionData(), and loop().

◆ delta_y

int8_t SensorPawA350::MotionData::delta_y

Y-axis movement (-128 to +127 counts)

Definition at line 184 of file SensorPawA350.hpp.

Referenced by SensorPawA350::getMotionData(), and loop().


The documentation for this struct was generated from the following file: