Bases: object
Capacitive touch controller. Class for CAP1203 touch sensor.
Check the current sensor status.
| Parameters: | none – |
|---|---|
| Returns: | status - Current chip status |
Configure the capacitve touch for multitouch inputs.
| Parameters: |
|
|---|---|
| Returns: | none |
Put the capacitive controller in deep sleep mode.
| Parameters: | none – |
|---|---|
| Returns: | none |
Enable the interrupt mode.
| Parameters: | pin – Enables interrupt on the specific pin |
|---|---|
| Returns: | none |
Read the status register.
| Parameters: | none – |
|---|---|
| Returns: | status - Contents of status register |
Return true if a multi-touch event happened.
| Parameters: | none – |
|---|---|
| Returns: | true if a multi-touch event happened |
Read the contents of the register.
| Parameters: |
|
|---|---|
| Returns: | data - Data content of register address |
Read the sensor manufacturer ID.
| Parameters: | none – |
|---|---|
| Returns: | id - Sensor ID as a number |
Read the pressed button, one of buttons 1 to 3.
| Parameters: | none – |
|---|---|
| Returns: | key - Button pressed |
Take the capacitive controller out of deep sleep mode.
| Parameters: | none – |
|---|---|
| Returns: | none |
Configure the button for power button mode.
| Parameters: | button – One of the three buttons |
|---|---|
| Returns: | none |
Configure the sensitivity of the controller.
| Parameters: | sensitivity – |
|---|---|
| Returns: | none |