Skip to content

Added constant to fix getRange and setRange bug - #1

Open
electrodynatronic wants to merge 1 commit into
masterfrom
electrodynatronic-patch-1
Open

Added constant to fix getRange and setRange bug#1
electrodynatronic wants to merge 1 commit into
masterfrom
electrodynatronic-patch-1

Conversation

@electrodynatronic

Copy link
Copy Markdown
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.

1 participant