Skip to content

Conversation

@edspark
Copy link
Contributor

@edspark edspark commented Oct 12, 2022

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
  • The new structure allows for functionality to be easily added

* removes irrelevant logic used to check some arguments
* changes return value and temporary value variable names (personal preference)
* updates register names
* Removes the part of functions that set the kx13x to sleep where that was needed - it adds a lot more write and reads when they may not be needed. Instead the user will just sleep the device and then change settings - then wake it back up.
* Adds functions for specific interrupt configurations
* Adds functions for initiating various engines
* Adds setCommunicationBus functions that enables the use of the bus drivers
* Fixes typos in regs header file
* Adds a number of functions
* Creates two sub classes for each accel version that inherits a class with all the shared functionality
* Adds functions for polling all of the possible interrupts
* Replaces old references to ISM part
* Updates SPI MODE
* Updates a few bit fields that have changed in the v4.0 reference document
* Adds a few tap related functions
* Adds a software reset function
* Updates all examples with correct output data rate comment
* Also updates all examples with sofware reset function and additional sensor class
@edspark edspark merged commit 9b2b518 into main Oct 12, 2022
@edspark edspark deleted the v2.0.0 branch October 12, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants