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
|
getOutputPinclearPinAssignment, getGpioNumber, resetAllGPIO, resetGpioListenersprotected GPIOOutputSimulator(int gpio_number)
gpio_number - the GPIO pin numberpublic void setState(boolean state)
GPIODigitalOutputsetState in class GPIODigitalOutputstate - the state to set output topublic void protectUnprovision(boolean protect)
GPIODigitalOutputprotectUnprovision in class GPIODigitalOutputprotect - set true to stop getting reset from unprovisionpublic boolean getState()
GPIODigitalOutputgetState in class GPIODigitalOutput