arduino-libraries / Arduino_LSM6DSOX

GNU Lesser General Public License v2.1
18 stars 17 forks source link

Add automatic selection of Wire/SPI interface #14

Closed giulcioffi closed 2 years ago

giulcioffi commented 2 years ago

This PR allows to create the IMU object with SPI interface if LSM6DS_DEFAULT_SPI and LSM6DS_INT are defined in the core. If the LSM6DS_DEFAULT_SPI define is not present, the IMU will use the I2C, as it was before.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

github-actions[bot] commented 2 years ago

Memory usage change @ 5b7e3f97c81923088e6dcfffb409ab401c0504d0

Board flash % RAM for global variables %
arduino:mbed_nano:nanorp2040connect 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table Board|examples/SimpleAccelerometer
flash|%|examples/SimpleAccelerometer
RAM for global variables|%|examples/SimpleGyroscope
flash|%|examples/SimpleGyroscope
RAM for global variables|%|examples/SimpleTemperature
flash|%|examples/SimpleTemperature
RAM for global variables|% -|-|-|-|-|-|-|-|-|-|-|-|- arduino:mbed_nano:nanorp2040connect|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/SimpleAccelerometer
flash,%,examples/SimpleAccelerometer
RAM for global variables,%,examples/SimpleGyroscope
flash,%,examples/SimpleGyroscope
RAM for global variables,%,examples/SimpleTemperature
flash,%,examples/SimpleTemperature
RAM for global variables,% arduino:mbed_nano:nanorp2040connect,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0 ```
giulcioffi commented 2 years ago

@facchinm If you are okay I would merge the PR and make a new release in the following days.