ldab / KXTJ3-1057

KXTJ3-1057 Tri-axis Digital Accelerometer - Arduino Library
MIT License
14 stars 8 forks source link

Major Feature Update #13

Closed nomakewan closed 1 year ago

nomakewan commented 1 year ago

This PR makes the KXTJ3-1057 interface library feature-complete, supporting all data registers, all operation modes, and all configuration variations. It also updates the documentation to clarify all of these functions, updates the included datasheet to the latest revision, includes the TN017 Power-On Procedure errata, updates keywords.txt to properly color all functions and variable names, and updates library.properties to remove redundant paragraph value and update the case on includes value.

It also includes several bugfixes for the core code, such as cleaning out garbage data from 16-bit data reads before using them for math operations, correcting the float conversion for g-values in axisAccel, allowing all functions to return I2C error states, and correctly set the internal state for highRes if the IMU's sample rate is set higher than 200 Hz.

All example sketches have been tested on real hardware and work as intended.

nomakewan commented 1 year ago

Not sure why that one Action timed out; it ran fine on the Push end.

EDIT: Ah good, it passed on re-run as expected.