mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
16 lines
379 B
Go
16 lines
379 B
Go
package driver
|
|
|
|
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
|
|
}
|