java.lang.Object
com.pi4j.common.IdentityBase
com.pi4j.io.IOBase<Pwm,PwmConfig,PwmProvider>
com.pi4j.io.pwm.PwmBase
com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmBase
com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmHardware
- All Implemented Interfaces:
Describable,Identity,Lifecycle,Extension,IO<Pwm,,PwmConfig, PwmProvider> OnOff<Pwm>,OnOffRead<Pwm>,OnOffWrite<Pwm>,Pwm
PiGpioPwmHardware class.
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.slf4j.Loggerstatic intConstantRANGE=1000000Fields inherited from class com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmBase
actualFrequency, piGpio, rangeFields inherited from class com.pi4j.io.pwm.PwmBase
dutyCycle, frequency, onState, polarity, presetsFields inherited from class com.pi4j.common.IdentityBase
description, id, metadata, name -
Constructor Summary
ConstructorsConstructorDescriptionPiGpioPwmHardware(PiGpio piGpio, PwmProvider provider, PwmConfig config) Constructor for PiGpioPwmHardware. -
Method Summary
Methods inherited from class com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmBase
calculateActualDutyCycle, getActualFrequencyMethods inherited from class com.pi4j.io.pwm.PwmBase
addPreset, applyPreset, deletePreset, getDutyCycle, getFrequency, getPreset, getPresets, isOn, setDutyCycle, setFrequency, shutdownMethods inherited from class com.pi4j.io.IOBase
config, context, describe, description, name, providerMethods inherited from class com.pi4j.common.IdentityBase
description, id, metadata, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pi4j.common.Identity
description, getDescription, getId, getMetadata, getName, id, metadata, nameMethods inherited from interface com.pi4j.io.pwm.Pwm
actualFrequency, addPreset, address, applyPreset, deletePreset, dutyCycle, dutyCycle, frequency, frequency, getActualFrequency, getAddress, getDutyCycle, getFrequency, getPolarity, getPreset, getPresets, getPwmType, isOff, isOn, on, on, polarity, preset, presets, pwmType, setDutyCycle, setFrequency
-
Field Details
-
logger
protected org.slf4j.Logger logger -
RANGE
public static int RANGEConstantRANGE=1000000
-
-
Constructor Details
-
PiGpioPwmHardware
Constructor for PiGpioPwmHardware.
- Parameters:
piGpio- aPiGpioobject.provider- aPwmProviderobject.config- aPwmConfigobject.
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceLifecycle- Overrides:
initializein classPiGpioPwmBase- Throws:
InitializeException
-
on
- Specified by:
onin interfaceOnOffWrite<Pwm>- Specified by:
onin interfacePwm- Throws:
IOException
-
off
- Specified by:
offin interfaceOnOffWrite<Pwm>- Specified by:
offin interfacePwm- Throws:
IOException
-