Class GPIOBase
java.lang.Object
org.photonvision.common.hardware.GPIO.GPIOBase
- Direct Known Subclasses:
CustomGPIO
,PigpioPin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
blink
(int pulseTimeMillis, int blinks) protected abstract void
blinkImpl
(int pulseTimeMillis, int blinks) protected static String
abstract int
final boolean
getState()
abstract boolean
final void
setBrightness
(int brightness) protected abstract void
setBrightnessImpl
(int brightness) final void
setOff()
final void
setOn()
void
setState
(boolean state) protected abstract void
setStateImpl
(boolean state) abstract boolean
shutdown()
void
-
Field Details
-
commands
-
-
Constructor Details
-
GPIOBase
public GPIOBase()
-
-
Method Details
-
execute
-
getPinNumber
public abstract int getPinNumber() -
setState
public void setState(boolean state) -
setStateImpl
protected abstract void setStateImpl(boolean state) -
setOff
public final void setOff() -
setOn
public final void setOn() -
togglePin
public void togglePin() -
shutdown
public abstract boolean shutdown() -
getState
public final boolean getState() -
getStateImpl
public abstract boolean getStateImpl() -
blink
public final void blink(int pulseTimeMillis, int blinks) -
blinkImpl
protected abstract void blinkImpl(int pulseTimeMillis, int blinks) -
setBrightness
public final void setBrightness(int brightness) -
setBrightnessImpl
protected abstract void setBrightnessImpl(int brightness)
-