17 lines
261 B
Go
17 lines
261 B
Go
package drivers
|
|
|
|
type ArtNetDriver struct {
|
|
Bus string
|
|
Addresses []uint
|
|
}
|
|
|
|
func NewArtNetDriver(bus string) *ArtNetDriver {
|
|
return &ArtNetDriver{
|
|
Bus: bus,
|
|
}
|
|
}
|
|
|
|
func (a *ArtNetDriver) AddAddress(adr uint) {
|
|
a.Addresses = append(a.Addresses, adr)
|
|
}
|