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

I2C conflict between PMU and I2C Sensor #7

Closed
wenjun1972 opened this issue Apr 10, 2023 · 2 comments
Closed

I2C conflict between PMU and I2C Sensor #7

wenjun1972 opened this issue Apr 10, 2023 · 2 comments

Comments

@wenjun1972
Copy link

Hi,

I found an I2C conflict between PMU and I2C sensor. If I give Wire.begin(sda,scl) for MPU6050 sensor ahead of PMU.begin(Wire, AXP2101_SLAVE_ADDRESS, I2C_SDA, I2C_SCL), it reported PMU failed to initialize, if I put Wire.begin(sda,scl) after PMU.begin(), it reports MPU6050 failed to find.


int sda = 13; // You can also use other IO ports
int scl = 21; // You can also use other IO ports
Wire.begin(sda,scl)

@lewisxhe
Copy link
Contributor

lewisxhe commented Apr 11, 2023

If you use the PMU, you only need to initialize the PMU, no additional statement is required, at this time you must use the SDA and SCL of the PMU

If you want to use another group separately, then you can set the PMU to Wire1, and the sensor uses Wire, because most libraries use the default Wire,

@lewisxhe
Copy link
Contributor

look here
9f63ab0

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

No branches or pull requests

2 participants