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
digitalInputgpio| Constructor and Description |
|---|
TouchSwitch(GPIOPin pin)
Constructor for a touch switch using a specific Gpio pin from the Raspberry Pi.
|
getGpioPinDigitalInput, isPressedgetTypepublic TouchSwitch(GPIOPin pin)
pin - the pin to use to manage the touch switch.