1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-14 19:29:32 +08:00
deadprogram 702199fe62 bb8: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 16:42:43 +01:00

23 lines
398 B
Go

package bb8
import (
"gobot.io/x/gobot"
"gobot.io/x/gobot/platforms/ble"
"gobot.io/x/gobot/platforms/sphero/ollie"
)
// Driver represents a Sphero BB-8
type BB8Driver struct {
*ollie.Driver
}
// NewDriver creates a Driver for a Sphero BB-8
func NewDriver(a *ble.ClientAdaptor) *BB8Driver {
d := ollie.NewDriver(a)
d.SetName(gobot.DefaultName("BB8"))
return &BB8Driver{
Driver: d,
}
}