public class GPIOPWMSimulator extends GPIOPWMOutput
gpioNumber, pinType
Modifier | Constructor and Description |
---|---|
protected |
GPIOPWMSimulator(int gpio_number)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the last value we set this to
|
void |
setValue(int value)
Sets the Output State
|
getOutputPin, getPwmRange, setPwmRange
clearPinAssignment, getGpioNumber, resetAllGPIO, resetGpioListeners
protected GPIOPWMSimulator(int gpio_number)
gpio_number
- the GPIO pin numberpublic void setValue(int value)
GPIOPWMOutput
setValue
in class GPIOPWMOutput
value
- the PWM value to set output topublic int getValue()
GPIOPWMOutput
getValue
in class GPIOPWMOutput