first commit of files
This commit is contained in:
12
models/dmx.go
Normal file
12
models/dmx.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
type DMX []byte
|
||||
|
||||
func NewDMXUniverse() *DMX {
|
||||
dmx := make(DMX, 512)
|
||||
return &dmx
|
||||
}
|
||||
|
||||
func (d *DMX) SetValue(channel uint, value uint8) {
|
||||
(*d)[channel] = value
|
||||
}
|
Reference in New Issue
Block a user