You are reading a single comment by @TomWS and its replies. Click here to read the full conversation.
  • Interesting approach on the LIS2DH12. I like the fact that you can pass configuration settings in the options 'option'. It can eliminate a lot of superfluous setup functions.

    Given this, if using SPI then cs could be a required option and the same connect function used - it's easy enough to distinguish whether the interface is SPI or I2C within the connect function. And, as you say, addr could be an option as you have it in LIS2DH12.

    I'll mess around with it and see what I can come up with...


Avatar for TomWS @TomWS started