public class GpioDimmableLightComponent extends DimmableLightBase
listeners| Constructor and Description |
|---|
GpioDimmableLightComponent(GpioPinPwmOutput pin,
int min,
int max)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel() |
int |
getMaxLevel() |
int |
getMinLevel() |
void |
setLevel(int level) |
addListener, addListener, getLevelPercentage, getLevelPercentage, isOff, isOn, notifyListeners, notifyListeners, off, on, removeListener, removeListeneraddListener, removeAllListeners, removeListenerclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveAllListenersclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagpublic GpioDimmableLightComponent(GpioPinPwmOutput pin, int min, int max)
pin - GPIO digital output pinmin - PWM pin value to set when LIGHT is fully ONmax - PWM pin value to set when LIGHT is fully OFFpublic int getMinLevel()
getMinLevel in interface DimmableLightgetMinLevel in class DimmableLightBasepublic int getMaxLevel()
getMaxLevel in interface DimmableLightgetMaxLevel in class DimmableLightBasepublic int getLevel()
getLevel in interface DimmableLightgetLevel in class DimmableLightBasepublic void setLevel(int level)
setLevel in interface DimmableLightsetLevel in class DimmableLightBaseCopyright © 2012-2013 Pi4J. All Rights Reserved.