public class Button extends DigitalInputDevice
activeHigh, device, pud, trigger
listeners
pinNumber
Constructor and Description |
---|
Button(GpioDeviceFactoryInterface deviceFactory,
int pinNumber,
GpioPullUpDown pud) |
Button(int pinNumber) |
Button(int pinNumber,
GpioPullUpDown pud) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPressed() |
boolean |
isReleased() |
void |
whenPressed(Action action) |
void |
whenReleased(Action action) |
close, disableListener, enableListener, getPullUpDown, getTrigger, getValue, isActive, isActiveHigh, valueChanged, whenActivated, whenDeactivated
addListener, removeAllListeners, removeListener
getPinNumber
public Button(int pinNumber) throws RuntimeIOException
RuntimeIOException
public Button(int pinNumber, GpioPullUpDown pud) throws RuntimeIOException
RuntimeIOException
public Button(GpioDeviceFactoryInterface deviceFactory, int pinNumber, GpioPullUpDown pud) throws RuntimeIOException
RuntimeIOException
Copyright © 2016 mattjlewis. All rights reserved.