|
upm
0.3.2
Sensor/Actuator repository for libmraa (v0.7.2)
|
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 | |
| TTP223 (unsigned int pin) | |
| ~TTP223 () | |
| std::string | name () |
| int | value () |
| bool | isPressed () |
Protected Attributes | |
| std::string | m_name |
| name of this sensor | |
| mraa_gpio_context | m_gpio |
| GPIO pin. | |
| std::string name | ( | ) |
Returns the name of this sensor
| int value | ( | ) |
Gets the value from the GPIO pin

| bool isPressed | ( | ) |
Determines whether the touch sensor is being touched

1.8.9.1