public class TouchSwitch extends Button
So, at each touch, the signal will go from low to high or from high to low.
Example of use: TouchSwitchExample
digitalInput
gpio
Constructor and Description |
---|
TouchSwitch(GPIOPin pin)
Constructor for a touch switch using a specific Gpio pin from the Raspberry Pi.
|
getGpioPinDigitalInput, isPressed
getType
public TouchSwitch(GPIOPin pin)
pin
- the pin to use to manage the touch switch.