32 #define AT42QT1070_I2C_BUS 0 33 #define AT42QT1070_DEFAULT_I2C_ADDR 0x1b 150 AT42QT1070(
int bus, uint8_t address = AT42QT1070_DEFAULT_I2C_ADDR);
164 bool writeByte(uint8_t reg, uint8_t byte);
174 bool writeWord(uint8_t reg, uint16_t word);
231 uint8_t
getAVE(uint8_t key);
240 uint8_t
setAVE(uint8_t key, uint8_t ave);
278 return m_calibrating;
303 return m_buttonStates;
307 uint8_t m_buttonStates;
311 mraa_i2c_context m_i2c;
bool isCalibrating()
Definition: at42qt1070.hpp:276
uint8_t getAVE(uint8_t key)
Definition: at42qt1070.cxx:167
uint8_t setLPMode(uint8_t mode)
Definition: at42qt1070.cxx:159
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:249
bool calibrate()
Definition: at42qt1070.cxx:256
bool isOverflowed()
Definition: at42qt1070.hpp:265
uint16_t readWord(uint8_t reg)
Definition: at42qt1070.cxx:109
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void updateState()
Definition: at42qt1070.cxx:125
~AT42QT1070()
Definition: at42qt1070.cxx:65
uint8_t readChipID(void)
Definition: at42qt1070.cxx:119
bool writeWord(uint8_t reg, uint16_t word)
Definition: at42qt1070.cxx:85
uint8_t getLPMode(void)
Definition: at42qt1070.cxx:153
uint8_t getButtons()
Definition: at42qt1070.hpp:301
uint8_t setAKSGroup(uint8_t key, uint8_t group)
Definition: at42qt1070.cxx:227
uint8_t readByte(uint8_t reg)
Definition: at42qt1070.cxx:99
API for the Atmel AT42QT1070 QTouch Sensor.
Definition: at42qt1070.hpp:63
uint8_t setAVE(uint8_t key, uint8_t ave)
Definition: at42qt1070.cxx:182
uint8_t getAKSGroup(uint8_t key)
Definition: at42qt1070.cxx:212