1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-09 19:29:27 +08:00
hybridgroup.gobot/driver.go
2013-10-28 20:26:05 -07:00

24 lines
364 B
Go

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