public class GPIOOutputSimulator extends GPIODigitalOutput
gpioNumber, pinType
Modifier | Constructor and Description |
---|---|
protected |
GPIOOutputSimulator(int gpio_number)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getState()
Gets the last state set
|
void |
protectUnprovision(boolean protect)
Set whether we are going to prevent this pin from de-provisioning if a reset is called
|
void |
setState(boolean state)
Sets the Output State
|
getOutputPin
clearPinAssignment, getGpioNumber, resetAllGPIO, resetGpioListeners
protected GPIOOutputSimulator(int gpio_number)
gpio_number
- the GPIO pin numberpublic void setState(boolean state)
GPIODigitalOutput
setState
in class GPIODigitalOutput
state
- the state to set output topublic void protectUnprovision(boolean protect)
GPIODigitalOutput
protectUnprovision
in class GPIODigitalOutput
protect
- set true to stop getting reset from unprovisionpublic boolean getState()
GPIODigitalOutput
getState
in class GPIODigitalOutput