Package com.pi4j.io.gpio
Interface GpioPinPwmOutput
-
- All Superinterfaces:
GpioPin
,GpioPinOutput
,GpioPinPwm
- All Known Implementing Classes:
GpioPinImpl
public interface GpioPinPwmOutput extends GpioPinPwm, GpioPinOutput
Gpio output pwm pin interface.This interface adds operation to set output pwm value.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setPwm(int value)
Set the PWM value/rate to toggle the GPIO pin.void
setPwmRange(int range)
This sets the range register in the PWM generator.-
Methods inherited from interface com.pi4j.io.gpio.GpioPin
addListener, addListener, clearProperties, export, export, getListeners, getMode, getName, getPin, getProperties, getProperty, getProperty, getProvider, getPullResistance, getShutdownOptions, getTag, hasListener, hasProperty, isExported, isMode, isPullResistance, removeAllListeners, removeListener, removeListener, removeProperty, setMode, setName, setProperty, setPullResistance, setShutdownOptions, setShutdownOptions, setShutdownOptions, setShutdownOptions, setShutdownOptions, setTag, unexport
-
Methods inherited from interface com.pi4j.io.gpio.GpioPinPwm
getPwm
-
-
-
-
Method Detail
-
setPwm
void setPwm(int value)
Set the PWM value/rate to toggle the GPIO pin. If this is a hardware PWM pin, the value should be between a range of 0 to 1024. If this is a software emulated PWM pin, the value should be between a range of 0 to 100.- Parameters:
value
-
-
setPwmRange
void setPwmRange(int range)
This sets the range register in the PWM generator. The default is 1024 for hardware PWM. The default is 100 for software emulated PWM.- Parameters:
range
-
-
-