upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the TTP223 Touch Sensor. More...
This touch sensor detects when a finger is near the metallic pad by the change in capacitance. It can replace a more traditional push button. The touch sensor can still function when placed under a non-metallic surface like glass or plastic.
Public Member Functions | |
synchronized void | delete () |
TTP223 (long pin) | |
String | name () |
int | value () |
boolean | isPressed () |
void | installISR (int level, IsrCallback cb) |
void | uninstallISR () |
void installISR | ( | int | level, |
IsrCallback | cb | ||
) |
Installs an interrupt service routine (ISR) to be called when the button is activated or deactivated.
fptr | Pointer to a function to be called on interrupt |
arg | Pointer to an object to be supplied as an argument to the ISR. |
boolean isPressed | ( | ) |
Determines whether the touch sensor is being touched
String name | ( | ) |
Returns the name of this sensor
void uninstallISR | ( | ) |
Uninstalls the previously installed ISR
int value | ( | ) |
Gets the value from the GPIO pin