1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/driver.go
2014-03-31 15:26:35 -07:00

16 lines
378 B
Go

package gobot
type Driver struct {
Interval string `json:"interval"`
Pin string `json:"pin"`
Name string `json:"name"`
Commands []string `json:"commands"`
Events map[string]chan interface{} `json:"-"`
}
type DriverInterface interface {
Init() bool
Start() bool
Halt() bool
}