27 #include <mraa/i2c.hpp>
29 #define MPR121_I2C_BUS 0
30 #define MPR121_DEFAULT_I2C_ADDR 0x5a
63 MPR121(
int bus, uint8_t address = MPR121_DEFAULT_I2C_ADDR);
96 mraa::Result
writeBytes(uint8_t reg, uint8_t *buffer,
int len);
105 int readBytes(uint8_t reg, uint8_t *buffer,
int len);
void readButtons()
Definition: mpr121.cxx:191
MPR121(int bus, uint8_t address=MPR121_DEFAULT_I2C_ADDR)
Definition: mpr121.cxx:35
uint16_t m_buttonStates
Definition: mpr121.h:110
API for the MPR121 I2C Touch Sensor.
Definition: mpr121.h:56
mraa::Result writeBytes(uint8_t reg, uint8_t *buffer, int len)
Definition: mpr121.cxx:51
bool m_overCurrentFault
Definition: mpr121.h:115
bool configAN3944()
Definition: mpr121.cxx:84
int readBytes(uint8_t reg, uint8_t *buffer, int len)
Definition: mpr121.cxx:71