Package com.diozero.api
Class GpioDevice
java.lang.Object
com.diozero.api.GpioDevice
- All Implemented Interfaces:
DeviceInterface
,AutoCloseable
- Direct Known Subclasses:
DigitalOutputDevice
,GpioInputDevice
,PwmOutputDevice
,Servo
public abstract class GpioDevice extends Object implements DeviceInterface
Abstract base class for all GPIO related devices.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GpioDevice(PinInfo pinInfo)
-
Method Summary
Modifier and Type Method Description int
getGpio()
Get the GPIO for this deviceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
Field Details
-
pinInfo
-
-
Constructor Details
-
GpioDevice
- Parameters:
pinInfo
- GPIO to which the device is connected
-
-
Method Details
-
getGpio
public int getGpio()Get the GPIO for this device- Returns:
- GPIO for this device
-