Use I2CHandle::ReadDataAtAddress for reading registers in mpr121.h#688
Conversation
|
Tested this on hardware, the addresses are correct, there is no need to shift them to the left (as was done in prior work). |
|
@kaathewise Good timing! I actually have a bit of time to go over contributions, etc. and was going to check in on the original PR today. If I can dig out an MPR121 from somewhere in my office, I'll also give this a test. If not, this looks okay based on the previous PR, and your successful tests. Thanks for the PR! |
|
I've also uncommented out the section that was not working before and updated one comment below which was inaccurate. Perhaps the discrepancy between the comment and the behaviour deserves separate attention. The comment said I personally would love the baseline tracking enabled on startup and then immediately disabled, as the current settings lead to contamination of baseline values and incorrect touch status when two or more pads are touched at once. |
|
Sorry, had to add one more thing. I've noticed that |
|
No need to apologize! Thanks for the thorough update. I'm hoping to test this a bit in general, but if I can't find my mpr121 hardware sometime tomorrow, I'll defer to your tests and merge it. |
|
Okay, I found my mpr121 breakout, and was able to test a bit. Seems solid to me! There is a lot of configuration (proximity, baseline tracking, etc.) that people may/may not want to use, but I think there is a lot of room for additional configuration to be added in future PRs. If there are any particular features you are currently using, or want to use, feel free to open a new PR with some additional data in the I'm not very familiar with this chip myself, but it is very widely used (and quite fun now that I've had a chance to mess with it a bit). Thank you again for the contribution! |
|
Thank you for your quick response and testing! As for the features, I realised that the public |
Based on #669 which seems abandoned. Remade the original pull request so it can be merged.
All credit goes to Matteocaroleo and Politek.
Closes #651