Skip to content

Conversation

@electrodynatronic
Copy link
Owner

Encountered an error attempting to use getRange() error follows:

AttributeError: 'Adafruit_ADXL345' object has no attribute 'ADXL345_REG_DATA_FORMAT'

Adding the constant fixes getRange and setRange bug

add print accel.getRange() to the example code to reporduce

Encountered an error attempting to use getRange() error follows:

    AttributeError: 'Adafruit_ADXL345' object has no attribute 'ADXL345_REG_DATA_FORMAT'

Adding the constant fixes getRange and setRange bug

add print accel.getRange() to the example code to reporduce
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

Successfully merging this pull request may close these issues.

2 participants