32 #define AT42QT1070_I2C_BUS 0
33 #define AT42QT1070_DEFAULT_I2C_ADDR 0x1b
149 AT42QT1070(
int bus, uint8_t address = AT42QT1070_DEFAULT_I2C_ADDR);
163 bool writeByte(uint8_t reg, uint8_t byte);
173 bool writeWord(uint8_t reg, uint16_t word);
230 uint8_t
getAVE(uint8_t key);
239 uint8_t
setAVE(uint8_t key, uint8_t ave);
277 return m_calibrating;
302 return m_buttonStates;
306 uint8_t m_buttonStates;
310 mraa_i2c_context m_i2c;
bool isCalibrating()
Definition: at42qt1070.h:275
uint8_t getAVE(uint8_t key)
Definition: at42qt1070.cxx:159
uint8_t setLPMode(uint8_t mode)
Definition: at42qt1070.cxx:151
bool writeByte(uint8_t reg, uint8_t byte)
Definition: at42qt1070.cxx:71
AT42QT1070(int bus, uint8_t address=AT42QT1070_DEFAULT_I2C_ADDR)
Definition: at42qt1070.cxx:37
bool reset()
Definition: at42qt1070.cxx:241
bool calibrate()
Definition: at42qt1070.cxx:248
bool isOverflowed()
Definition: at42qt1070.h:264
uint16_t readWord(uint8_t reg)
Definition: at42qt1070.cxx:105
void updateState()
Definition: at42qt1070.cxx:117
~AT42QT1070()
Definition: at42qt1070.cxx:65
uint8_t readChipID(void)
Definition: at42qt1070.cxx:111
bool writeWord(uint8_t reg, uint16_t word)
Definition: at42qt1070.cxx:85
uint8_t getLPMode(void)
Definition: at42qt1070.cxx:145
uint8_t getButtons()
Definition: at42qt1070.h:300
uint8_t setAKSGroup(uint8_t key, uint8_t group)
Definition: at42qt1070.cxx:219
uint8_t readByte(uint8_t reg)
Definition: at42qt1070.cxx:99
API for the Atmel AT42QT1070 QTouch Sensor.
Definition: at42qt1070.h:62
uint8_t setAVE(uint8_t key, uint8_t ave)
Definition: at42qt1070.cxx:174
uint8_t getAKSGroup(uint8_t key)
Definition: at42qt1070.cxx:204