udmx
provides a Go interface for talking to cheap "udmx"
USB-DMX interfaces such as
this one.
This was developed using markusb/uDMX-linux as documentation of the interface to udmx devices, but doesn't reuse any of the code.
import (
"github.com/google/gousb"
"github.com/scottlaird/udmx"
)
func main() {
ctx := gousb.NewContext()
udmx, err := udmx.NewUDMXDevice(ctx)
if err != nil {
panic(err)
}
// Set DMX device #5 to `17`.
udmx.Set(5, 17)
}
This is not an official Google project.