adafruit / Adafruit_CircuitPython_ADXL37x

A CircuitPython driver for the ADXL37x family of accelerometers
MIT License
0 stars 3 forks source link

Added range and data_ready interrupt parameters #7

Closed RoaCode closed 1 month ago

RoaCode commented 1 month ago

This PR addresses 2 things:

  1. Range: - The ADXL375 starts up with a max range of 25g, but the datasheet does not really say anything about this. This adds range controls in the same manner as the ADXL345 with adjusted values. Using these controls will alleviate Issue #4.
  2. Data Ready interrupt: - The other interrupt schemes for the ADXL375 were already implemented, but this adds the Data Ready. Using the Data Ready interrupt is useful for precise timing of many samples at a fixed sample rate set by the sensor.