MPR121 i2c touch keypad with Wire library
(I am a new member here, so excuse me if my problem is not relevant here. If so, please write me, where to discuss my problem, thanks.)
Last two days I have tried to use a touch keypad assembled with MPR121MPR121Sensors, encoders and camerasSpark Logic archive MPR121 i2c touch keypad with Wire library szilvasyz Sun Aug 13, 2017 11:08 am Hi All, (I am a new member h…View in hardware catalog chip with my “Blue PillBlue PillDevelopment and computing boards…as become my new favorite board. I am calling it “blue pad” and it is kind of super “ blue pill ”. Pito Thu Jul 27, 2017 8:53 pm [victor_pv – Thu Jul 27, 2017 3:58 pm] – Just for…View in hardware catalog ” generic STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog board (STM32F103C8T6STM32F103C8T6Microcontrollers and processors…e Sep 27, 2016 10:28 pm I know this is an old topic, but… I’m using blue pill board ( STM32F103C8T6 , version 3). With the current (modified) Adafruit library 0.96″ OLED display w…View in hardware catalog ). As I saw there is an Adafruit library to handle this hardware, but unforunatelly compiling that library runs into an error. The error comes up because there is no “endTransmission(uint8)” method in the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ’s Wire library.
Looking after this special use of “endTransmission()” in the Adafruit library I found that the library closes the transmission the way the stop condition is not to be sent (“endTransmission(false)”) at the end of register addressing.
Further investigations showed me that with STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ’s Wire library I can communicate with other i2c devices (I tried PCF8574PCF8574Analog, logic and power components… me that with STM32’s Wire library I can communicate with other i2c devices (I tried PCF8574 and DS1621) without any problem. Reading the datasheet of MPR121 I found that there is…View in hardware catalog and DS1621DS1621Sensors, encoders and cameras…h STM32’s Wire library I can communicate with other i2c devices (I tried PCF8574 and DS1621 ) without any problem. Reading the datasheet of MPR121 I found that there is a special…View in hardware catalog ) without any problem. Reading the datasheet of MPR121MPR121Sensors, encoders and camerasSpark Logic archive MPR121 i2c touch keypad with Wire library szilvasyz Sun Aug 13, 2017 11:08 am Hi All, (I am a new member h…View in hardware catalog I found that there is a special communication protocol case that seems cannot be realized using STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Wire library.
Reading a register from MPR121MPR121Sensors, encoders and camerasSpark Logic archive MPR121 i2c touch keypad with Wire library szilvasyz Sun Aug 13, 2017 11:08 am Hi All, (I am a new member h…View in hardware catalog needs a communication as follows:
1. sending start condition
2. sending slave address for write mode
3. reading slave ACK
4. sending register address
5. reading slave ACK
6. SENDING REPEATED START CONDITION
7. sending slave address for read mode
8. reading slave ACK
9. reading data byte (register cotent)
10. sending master NAK
11. sending stop condition
I could not make the sequence above using STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Wire library. The most critical point of the sequence is step 6, sending a repeated start condition; if you send a stop condition followed by a start condition instead, you would not read the desired register data but always get zero in step 9.
Yesterday evening I wrote a bit-banging i2c communication sketch that could send a repeated start condition at step 6 and I could read all the registers of MPR121MPR121Sensors, encoders and camerasSpark Logic archive MPR121 i2c touch keypad with Wire library szilvasyz Sun Aug 13, 2017 11:08 am Hi All, (I am a new member h…View in hardware catalog correctly.
Maybe there is a method to generate the sequence above with Wire lib but it is unknown for me. If so, please write me how to do!
At this point – if I am right and the desired sequence cannot be assembled by STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Wire lib – I cannot decide what would be the best solution:
– writing my own bit-banging code for handling this HW?
– modifying STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Wire library for myself to handle endTransmission(false) calls corectly?
– putting a request (where, how?) to modify Wire library as above?
Please help me for solution. Thank you in advance.
Regards,
Zoltan
