Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong values for accelerometer configuration #7

Open
ezono-Muhammad opened this issue Dec 4, 2023 · 0 comments
Open

Wrong values for accelerometer configuration #7

ezono-Muhammad opened this issue Dec 4, 2023 · 0 comments

Comments

@ezono-Muhammad
Copy link

Subject of the issue

Wrong values for accelerometer configuration

Your workbench

  • Raspberry pi 4
  • I2C. IMU address is 0x68
  • Via i2c connection on Raspberry pi 4

Steps to reproduce

Using the following code :

from __future__ import print_function
import qwiic_icm20948
import time
import sys


if __name__ == "__main__":

    IMU = qwiic_icm20948.QwiicIcm20948(address=0x68)
    IMU.setBank(2)
    IMU._i2c.writeByte(IMU.address, IMU.AGB2_REG_ACCEL_CONFIG_1, 0x23)	
    register = IMU._i2c.readByte(IMU.address, IMU.AGB2_REG_ACCEL_CONFIG_1)
    print(register)

Expected behaviour

The return value should be 0x23

Actual behaviour

The return value is 0x01

image

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

No branches or pull requests

1 participant