feat(ezcoo): serial driver for EZCOO HDMI matrix
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package ezcoo
|
||||
|
||||
import "sync"
|
||||
|
||||
type State [2]int
|
||||
|
||||
type Device struct {
|
||||
cfg Config
|
||||
cmds chan string
|
||||
mu sync.RWMutex
|
||||
current State
|
||||
}
|
||||
|
||||
func NewDevice(cfg Config) *Device {
|
||||
return &Device{
|
||||
cfg: cfg,
|
||||
cmds: make(chan string, 8),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user