Class CustomGPIO
java.lang.Object
org.photonvision.common.hardware.GPIO.GPIOBase
org.photonvision.common.hardware.GPIO.CustomGPIO
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
blinkImpl
(int pulseTimeMillis, int blinks) int
boolean
void
setBrightnessImpl
(int brightness) static void
setConfig
(HardwareConfig config) void
setStateImpl
(boolean state) boolean
shutdown()
void
-
Constructor Details
-
CustomGPIO
public CustomGPIO(int port)
-
-
Method Details
-
togglePin
public void togglePin() -
getPinNumber
public int getPinNumber()- Specified by:
getPinNumber
in classGPIOBase
-
setStateImpl
public void setStateImpl(boolean state) - Specified by:
setStateImpl
in classGPIOBase
-
shutdown
public boolean shutdown() -
getStateImpl
public boolean getStateImpl()- Specified by:
getStateImpl
in classGPIOBase
-
blinkImpl
public void blinkImpl(int pulseTimeMillis, int blinks) -
setBrightnessImpl
public void setBrightnessImpl(int brightness) - Specified by:
setBrightnessImpl
in classGPIOBase
-
setConfig
-