Skip to content

Allow initialization with all supported XM125 I2C addresses#20

Open
Eclypsee wants to merge 1 commit into
sparkfun:mainfrom
Eclypsee:main
Open

Allow initialization with all supported XM125 I2C addresses#20
Eclypsee wants to merge 1 commit into
sparkfun:mainfrom
Eclypsee:main

Conversation

@Eclypsee

Copy link
Copy Markdown

init() currently only accepts SFE_XM125_I2C_ADDRESS, even though the hardware supports alternate I2C addresses (0x51 and 0x53). This prevents applications from using multiple XM125 devices configured with different addresses. This change updates the address validation to accept all supported addresses.

init() currently only accepts SFE_XM125_I2C_ADDRESS, even though the hardware supports alternate I2C addresses (0x51 and 0x53). This prevents applications from using multiple XM125 devices configured with different addresses. This change updates the address validation to accept all supported addresses.
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