public interface GpioProvider
Modifier and Type | Method and Description |
---|---|
void |
addListener(Pin pin,
PinListener listener) |
void |
export(Pin pin,
PinMode mode) |
void |
export(Pin pin,
PinMode mode,
PinState defaultState) |
PinMode |
getMode(Pin pin) |
String |
getName() |
PinPullResistance |
getPullResistance(Pin pin) |
int |
getPwm(Pin pin) |
PinState |
getState(Pin pin) |
double |
getValue(Pin pin) |
boolean |
hasPin(Pin pin) |
boolean |
isExported(Pin pin) |
boolean |
isShutdown() |
void |
removeAllListeners() |
void |
removeListener(Pin pin,
PinListener listener) |
void |
setMode(Pin pin,
PinMode mode) |
void |
setPullResistance(Pin pin,
PinPullResistance resistance) |
void |
setPwm(Pin pin,
int value) |
void |
setPwmRange(Pin pin,
int range) |
void |
setState(Pin pin,
PinState state) |
void |
setValue(Pin pin,
double value) |
void |
shutdown() |
void |
unexport(Pin pin) |
boolean isExported(Pin pin)
void setPullResistance(Pin pin, PinPullResistance resistance)
PinPullResistance getPullResistance(Pin pin)
void setPwmRange(Pin pin, int range)
void addListener(Pin pin, PinListener listener)
void removeListener(Pin pin, PinListener listener)
void removeAllListeners()
void shutdown()
boolean isShutdown()
Copyright © 2012–2021 Pi4J. All rights reserved.