I've bought a 12 key keypad which has an mpr121 chip built in.
How do i read registers 0x00 and 0x01?
How do i signal that the rq line has been read and can reset to high/floating?
i've got this far with the dummy method `keypad.rq_high
this is my python
import RPi.GPIO as GPIO
from fcntl import ioctl
IOCTL_I2C_SLAVE = 0x0703
def __init__(self, i2c, rq_pin, address = 0x5a):
self._fd = posix.open('/dev/i2c-%d' % i2c, posix.O_RDWR)
ioctl(self._fd, IOCTL_I2C_SLAVE, address)
GPIO.setup(self._rq_pin, GPIO.IN, GPIO.PUD_UP)
return GPIO.input(self._rq_pin) == GPIO.HIGH
print("high", end = '\r')
print("low ", end = '\r')
I only have switched on a few keys but realise i need to write something different to register 0x5e (probably 0x3f)