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, removeListener
addListener, removeAllListeners, removeListener
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeAllListeners
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
public 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 DimmableLight
getMinLevel
in class DimmableLightBase
public int getMaxLevel()
getMaxLevel
in interface DimmableLight
getMaxLevel
in class DimmableLightBase
public int getLevel()
getLevel
in interface DimmableLight
getLevel
in class DimmableLightBase
public void setLevel(int level)
setLevel
in interface DimmableLight
setLevel
in class DimmableLightBase
Copyright © 2012–2014 Pi4J. All rights reserved.