changed color setters to return status
This commit is contained in:
parent
19d286fa29
commit
4dc7623153
|
@ -17,21 +17,26 @@ public class Strobe1500 extends BuntiDMXDevice {
|
||||||
addChannel(new DMXChannel(2, CHANNEL_MODE));
|
addChannel(new DMXChannel(2, CHANNEL_MODE));
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setSpeed(int value) {
|
public final boolean setSpeed(int value) {
|
||||||
setChannelValueByName(CHANNEL_SPEED, value);
|
return setChannelValueByName(CHANNEL_SPEED, value);
|
||||||
}
|
}
|
||||||
public final void setIntensity(int value) {
|
|
||||||
setChannelValueByName(CHANNEL_INTENSITY, value);
|
public final boolean setIntensity(int value) {
|
||||||
|
return setChannelValueByName(CHANNEL_INTENSITY, value);
|
||||||
}
|
}
|
||||||
public final void setMode(int value) {
|
|
||||||
setChannelValueByName(CHANNEL_MODE, value);
|
public final boolean setMode(int value) {
|
||||||
|
return setChannelValueByName(CHANNEL_MODE, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int getSpeed() {
|
public final int getSpeed() {
|
||||||
return getChannelValueByName(CHANNEL_SPEED);
|
return getChannelValueByName(CHANNEL_SPEED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int getIntensity() {
|
public final int getIntensity() {
|
||||||
return getChannelValueByName(CHANNEL_INTENSITY);
|
return getChannelValueByName(CHANNEL_INTENSITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int getMode() {
|
public final int getMode() {
|
||||||
return getChannelValueByName(CHANNEL_MODE);
|
return getChannelValueByName(CHANNEL_MODE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue