API for the Atmel AT42QT1070 QTouch Sensor.
More...
- ID: at42qt1070
- Name: AT42QT1070 QTouch Sensor
- Other Names: Grove QTouch Sensor
- Category: touch
- Manufacturer: seeed
- Connection: i2c
This class implements support for the Atmel AT42QT1070 QTouch sensor, which supports 7 capacitive buttons.
It was developed using a Grove-Q Touch Sensor board.
|
class | AT42QT1070_DET_T |
|
class | AT42QT1070_REG_T |
|
AT42QT1070 constructor
- Parameters
-
bus | I2C bus to use |
address | Address for this sensor |
Issues a calibrate command
- Returns
- True if successful
short getAKSGroup |
( |
short |
key | ) |
|
Reads the AKS group of which a key is part
- Parameters
-
key | Key (0-6) being queried |
- Returns
- AKS group of which the key is part
short getAVE |
( |
short |
key | ) |
|
Reads the current averaging factor setting for a key
- Parameters
-
- Returns
- Averaging factor
Gets the current button states
- Returns
- Button states
boolean isCalibrating |
( |
| ) |
|
Returns the calibrating indicator
- Returns
- True if calibration is in progress
Returns the overflow indicator
- Returns
- True if overflow is indicated
short readByte |
( |
short |
reg | ) |
|
Read a byte value from the register
- Parameters
-
reg | Register location to read from |
- Returns
- Value in the specified register
int readWord |
( |
short |
reg | ) |
|
Read a word value from the register. Note: the device must have the auto-increment bit set in the MODE1 register to work.
- Parameters
-
reg | Register location to read from |
- Returns
- Value in the specified register
Issues a reset command
- Returns
- True if successful
short setAKSGroup |
( |
short |
key, |
|
|
short |
group |
|
) |
| |
Changes the AKS group of which a key is part
- Parameters
-
key | Key (0-6) being changed |
group | New group for the key |
- Returns
- New value on the sensor
short setAVE |
( |
short |
key, |
|
|
short |
ave |
|
) |
| |
Changes the averaging factor setting for a key
- Parameters
-
key | Key being changed |
ave | New averaging factor |
- Returns
- New averaging factor as read from the device
short setLPMode |
( |
short |
mode | ) |
|
Changes the low-pomer mode setting on the sensor
- Parameters
-
- Returns
- New setting on the sensor
Reads the current touch status and detection state
- Returns
- Key status bits for all keys (0-6)
boolean writeByte |
( |
short |
reg, |
|
|
short |
arg1 |
|
) |
| |
Writes a byte value into the register
- Parameters
-
reg | Register location to write into |
byte | Byte to write |
- Returns
- True if successful
boolean writeWord |
( |
short |
reg, |
|
|
int |
word |
|
) |
| |
Writes a word value into the register. Note: the device must have the auto-increment bit set in the MODE1 register to work.
- Parameters
-
reg | Register location to write into |
word | Word to write |
- Returns
- True if successful
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/at42qt1070/AT42QT1070.java