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

Communication problems using MPR121 #521

Open
mhusinsky opened this issue Mar 8, 2020 · 2 comments
Open

Communication problems using MPR121 #521

mhusinsky opened this issue Mar 8, 2020 · 2 comments

Comments

@mhusinsky
Copy link

hey there,

when trying to use an MPR121 (using the Adafruit Breakout Board) i failed using the code provided.
after some hours of debugging and comparing the code with the library provided by adafruit i found out that the culprit is the way I2C data is requested in I2Cdev.cpp

Changing this line:

Wire.endTransmission();

to

Wire.endTransmission(false);

makes it work though.

i'm not sure if this change has implications for other devices but it is necessary to make the MPR121 work.

@mhusinsky
Copy link
Author

i forgot to mention that this happend to me on an ESP32 based board

@AshwiniCDAC
Copy link

Can you share your code here ? As the same setup is working for me for ESP32

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