1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00
hybridgroup.gobot/driver.go
2013-11-24 14:41:36 -08:00

21 lines
326 B
Go

package gobot
import "fmt"
type Driver struct {
Interval string
Pin string
Name string
Params map[string]string
Commands []string
Events map[string]chan interface{} `json:"-"`
}
func NewDriver(d Driver) Driver {
return d
}
func (d *Driver) Start() {
fmt.Println("Starting driver " + d.Name + "...")
}