public interface PwmOutputDeviceInterface extends GpioDeviceInterface
Modifier and Type | Method and Description |
---|---|
default DeviceMode |
getMode() |
int |
getPwmNum()
Get the device PWM output device number
|
float |
getValue()
Get the current PWM output value (0..1)
|
void |
setValue(float value)
Set the PWM output value (0..1)
|
getGpio
close, getKey, isOpen
int getPwmNum()
float getValue() throws RuntimeIOException
RuntimeIOException
- if an I/O error occursvoid setValue(float value) throws RuntimeIOException
value
- Relative value in the range 0..1RuntimeIOException
- if an I/O error occursdefault DeviceMode getMode()
getMode
in interface GpioDeviceInterface
Copyright © 2016–2018 mattjlewis. All rights reserved.