1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/driver.go

16 lines
378 B
Go
Raw Normal View History

2013-10-22 16:45:31 -07:00
package gobot
2013-10-23 22:00:03 -07:00
type Driver struct {
2014-01-26 18:55:27 -08:00
Interval string `json:"interval"`
Pin string `json:"pin"`
Name string `json:"name"`
Commands []string `json:"commands"`
2013-11-23 10:36:08 -08:00
Events map[string]chan interface{} `json:"-"`
2013-10-23 22:00:03 -07:00
}
type DriverInterface interface {
2014-03-31 15:26:35 -07:00
Init() bool
Start() bool
2014-03-31 14:25:20 -07:00
Halt() bool
2013-10-23 22:00:03 -07:00
}