Skip to content

Comments

added support for device address 0x69#9

Open
shijogeorge24 wants to merge 1 commit intoDFRobot:masterfrom
shijogeorge24:master
Open

added support for device address 0x69#9
shijogeorge24 wants to merge 1 commit intoDFRobot:masterfrom
shijogeorge24:master

Conversation

@shijogeorge24
Copy link

Title: Enhance BMX160 Library for Customizable I2C Address Initialization

Description:

Issue: While working with the BMX160 sensor on the Arduino Mega board, I encountered a limitation where using multiple sensors with the default I2C address (0x68) became problematic. The address was hardcoded to _addr=0x68 in the header file, limiting the flexibility for users requiring multiple sensors.

Solution: To address this, I have made modifications to the BMX160 library:

Updated the begin function to accept an optional argument for the I2C address.
Users now have the flexibility to specify a custom I2C address during sensor initialization or use the default 0x68 address if left unspecified.

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