-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dunarnia): Added BasicLedBar, InvolightMovingBar1808 & Involight…
…SlimPar784
- Loading branch information
1 parent
5b85443
commit d7beb4d
Showing
6 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import RgbParam from './param/RgbParam.js' | ||
import RangeParam from 'fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class BasicLedBar extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign({}, options, { | ||
params: { | ||
color: new RgbParam([1, 2, 3]), | ||
white: new RangeParam(4, { min: 0, max: 255 }), | ||
dimmer: new RangeParam(5, { min: 0, max: 255 }), | ||
strobe: new RangeParam(6, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.layout = {} | ||
this.layout.width = 1 | ||
this.layout.height = 1 | ||
|
||
this.channels = 6 | ||
this.weight = 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import RgbParam from './param/RgbParam.js' | ||
import RangeParam from 'fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class InvolightMovingBar1808 extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign({}, options, { | ||
params: { | ||
tilt: new RangeParam(1, { min: 0, max: 255 }), | ||
tiltSpeed: new RangeParam(2, { min: 0, max: 255 }), | ||
// 3: Program | ||
// 4: Program Speed | ||
dimmer: new RangeParam(5, { min: 0, max: 255 }), | ||
strobe: new RangeParam(6, { min: 0, max: 255 }), | ||
color: new RgbParam([7, 8, 9]), | ||
white: new RangeParam(10, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.layout = {} | ||
this.layout.width = 1 | ||
this.layout.height = 1 | ||
|
||
this.channels = 10 | ||
this.weight = 1.2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import RgbParam from './param/RgbParam.js' | ||
import RangeParam from 'fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class InvolightSlimPar784 extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign({}, options, { | ||
params: { | ||
color: new RgbParam([1, 2, 3]), | ||
white: new RangeParam(4, { min: 0, max: 255 }), | ||
dimmer: new RangeParam(5, { min: 0, max: 255 }), | ||
strobe: new RangeParam(6, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.layout = {} | ||
this.layout.width = 1 | ||
this.layout.height = 1 | ||
|
||
this.channels = 6 | ||
this.weight = 1.2 | ||
} | ||
} |