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

Add configurable I2C addresses #6

Merged
merged 3 commits into from
Apr 5, 2021
Merged

Add configurable I2C addresses #6

merged 3 commits into from
Apr 5, 2021

Conversation

elaske
Copy link
Contributor

@elaske elaske commented Apr 5, 2021

This allows the class to work on other addresses configured with the SA0/1 pins on the FXOS8700. It still defaults to the current address as configured by Adafruit's 9-axis board, and was implemented such that any code currently working with this class will still function as-is.

This configuration option on other Sensor libraries is implemented as part of the begin() method. However, implementing it here would have possible breaking-change possibilities given there's already a configuration option in this method. I am open to thoughts on placing it here to be more standardized.

I have tested with the Freescale Freedom board with these devices on it with a Grand Central M4, because those are the boards I have, but the logical structure is all still the same so shouldn't impact the operation previously.

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please run clang-format and doxygen

Formatting improvements
Formatting again.
@elaske elaske requested a review from ladyada April 5, 2021 19:04
@ladyada ladyada merged commit be78a80 into adafruit:master Apr 5, 2021
@ladyada
Copy link
Member

ladyada commented Apr 5, 2021

thanx!

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