Skip to content

Releases: sparkfun/SparkFun_KX13X_Arduino_Library

Version 2.0.4

21 Jan 10:41
0d85c6c
Compare
Choose a tag to compare

This release:

  • Corrects the return value from writeRegisterByte
  • Improves the speed of convAccelData by keeping a local copy of the g-range
  • Improves softwareReset
  • Improves readRegisterRegion

Version 2.0.3

18 Jan 11:51
1ee93c0
Compare
Choose a tag to compare

This release:

  • Changes the bitfield definitions in regs.h to LSB-first
  • Changes the methods in .cpp so they use the bitfields instead of hard-coded bit patterns
  • Corrects OR-ing of data into the registers, using the bitfields to set/clear
  • Corrects setRange ( see #19 )
  • Improves getRawAccelData so it can read 8-bit buffer data as well as 16-bit
  • Adds getRawAccelRegisterData and getRawAccelBufferData allowing the data to be read faster if you already know if the buffer is being used and the data resolution

Example fixes

11 Jan 19:05
Compare
Choose a tag to compare

Fixes range argument and adds a small delay after resetting the accelerometer in all examples. The delay aligns with the app note stating that the IC needs 2ms minimum for a proper reset. In some cases faster processors like the Teensy were exposing this lacking delay.

Adds wake/sleep functions

14 Oct 21:42
Compare
Choose a tag to compare
v2.0.1

Adds functions for wake and sleep engines

Library Overhaul

13 Oct 20:55
Compare
Choose a tag to compare

Changes to the library are rather extensive but I will attempt at a concise list below:

  • Separates the library into three distinct file structures: main source files, bus driver source files, and Arduino interface file
    
  • The data collection was done by value and not by reference which is not....ideal
    
  • Many additional functions for tap related functionality, and other "engine" functionalities
    

Overall this allows for easier implementation of additional functions if needed and the performance is much better with the new changes.

Adds SPI example

27 Sep 19:10
Compare
Choose a tag to compare

Adds SPI example

Fixes SPI

18 Nov 19:27
Compare
Choose a tag to compare

The library previously used the wrong value for reads and had a number of other issues related to SPI transactions, all of which has been fixed in this release

ESP32 compatibility fix

28 Oct 18:13
Compare
Choose a tag to compare

As outlined in this issue the KX13X library was not compatible with the ESP32. This is fixed with this release.

Fixes compiler warnings

23 Sep 19:35
Compare
Choose a tag to compare

Correctly passes an argument of the correct size to the requestFrom size parameter.

Bug fixes around reading and writing output data rate

09 Sep 17:40
Compare
Choose a tag to compare

The output data rate was being incorrectly calculated when reading it. When writing to the register, there was an extraneous error check that kept the register from being written correctly.