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