adafruit / Adafruit_CircuitPython_ADXL34x

A CircuitPython driver for the ADXL34x family of accelerometers
MIT License
37 stars 14 forks source link

how to set data_rate #40

Closed pandjer closed 1 month ago

pandjer commented 1 year ago

Hello everyone. I dont know how to change the data rate. I have the register address "_REG_BW_RATE" and the desired data rate "datarate.RATE_800_HZ" to change the data rate. Now I have done "accelerometer._write_register_byte(_REG_BW_RATE, datarate.RATE_800_HZ)" but no change. What did I do wrong? (p.s. I use ADXL375)

tannewt commented 1 month ago

There is a separate library for the ADXL375 here: https://github.com/adafruit/Adafruit_CircuitPython_ADXL37x