MPR121 i2c touch keypad with Wire library

User avatar
RogerClark
Posts: 7443
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: MPR121 i2c touch keypad with Wire library

Post by RogerClark » Mon Aug 14, 2017 10:24 am

If you have a github account, I would raise an issue for this on the stm32duino github account as fpSTM is quite proactive about these things, and as he works for STM, sometimes he can get support when things are missing from the HAL

szilvasyz
Posts: 6
Joined: Sun Aug 13, 2017 10:06 am

Re: MPR121 i2c touch keypad with Wire library

Post by szilvasyz » Wed Aug 16, 2017 9:42 pm

Hi Roger,

Sorry for late answering, I've just finished the test code for generating "repeated start" with i2c hardware peripheral. As it can be seen the hardware is able to do it, only i2c libraries don't realize the "stopless" transmission. I attahced the sketch I worked on to demonstrate the things. Although the sample code does not care about any errors during communication, it is working on my desk. I can read all registers of MPR121 correctly.

In the meantime I created a free Github account (szilvasyz), because I had none.

Do you think there is any chance to put handling of this "stopless transmission" case in the main Wire lib code?

Regards,
Zoltan
Attachments
stm32_repeated_start.ino
(6.51 KiB) Downloaded 8 times

User avatar
RogerClark
Posts: 7443
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: MPR121 i2c touch keypad with Wire library

Post by RogerClark » Wed Aug 16, 2017 10:29 pm

I don't know that much about I2C, but I am happy to change the core as long as it does not break things for other users.

I am also happy to add new API functions if necessary to enable this mode

Post Reply