Package com.pi4j.io.gpio
Class GpioProviderPinCache
- java.lang.Object
-
- com.pi4j.io.gpio.GpioProviderPinCache
-
public class GpioProviderPinCache extends Object
This class provides cache for gpio pin instances.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Constructor Summary
Constructors Constructor Description GpioProviderPinCache(Pin pin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAnalogValue()
PinMode
getMode()
int
getPwmValue()
PinPullResistance
getResistance()
PinState
getState()
boolean
isExported()
void
setAnalogValue(double value)
void
setExported(boolean exported)
void
setMode(PinMode mode)
void
setPwmValue(int value)
void
setResistance(PinPullResistance resistance)
void
setState(PinState state)
String
toString()
-
-
-
Constructor Detail
-
GpioProviderPinCache
public GpioProviderPinCache(Pin pin)
-
-
Method Detail
-
getMode
public PinMode getMode()
-
setMode
public void setMode(PinMode mode)
-
getState
public PinState getState()
-
setState
public void setState(PinState state)
-
getResistance
public PinPullResistance getResistance()
-
setResistance
public void setResistance(PinPullResistance resistance)
-
getAnalogValue
public double getAnalogValue()
-
setAnalogValue
public void setAnalogValue(double value)
-
getPwmValue
public int getPwmValue()
-
setPwmValue
public void setPwmValue(int value)
-
isExported
public boolean isExported()
-
setExported
public void setExported(boolean exported)
-
-