Package com.diozero.internal.spi
Interface PwmOutputDeviceFactoryInterface
- All Superinterfaces:
AutoCloseable
,Closeable
,DeviceFactoryInterface
- All Known Subinterfaces:
NativeDeviceFactoryInterface
- All Known Implementing Classes:
BaseNativeDeviceFactory
,DefaultDeviceFactory
,MCP23008
,MCP23017
,MCP23S17
,MCP23x08
,MCP23x17
,MCP23xxx
,PCA9685
,PiconZero
public interface PwmOutputDeviceFactoryInterface extends DeviceFactoryInterface
-
Method Summary
Modifier and Type Method Description PwmOutputDeviceInterface
createPwmOutputDevice(String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
int
getBoardPwmFrequency()
default PwmOutputDeviceInterface
provisionPwmOutputDevice(int pwmOrGpioNum, int pwmFrequency, float initialValue)
void
setBoardPwmFrequency(int pwmFrequency)
Methods inherited from interface com.diozero.internal.spi.DeviceFactoryInterface
close, createI2CKey, createPinKey, createSerialKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getName, isClosed, isDeviceOpened, reopen, start
-
Method Details
-
provisionPwmOutputDevice
default PwmOutputDeviceInterface provisionPwmOutputDevice(int pwmOrGpioNum, int pwmFrequency, float initialValue) throws RuntimeIOException- Throws:
RuntimeIOException
-
getBoardPwmFrequency
int getBoardPwmFrequency() -
setBoardPwmFrequency
void setBoardPwmFrequency(int pwmFrequency) -
createPwmOutputDevice
PwmOutputDeviceInterface createPwmOutputDevice(String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
-