1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-14 19:29:32 +08:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00

23 lines
432 B
Go

package sprkplus
import (
"gobot.io/x/gobot/v2"
"gobot.io/x/gobot/v2/platforms/ble"
"gobot.io/x/gobot/v2/platforms/sphero/ollie"
)
// Driver represents a Sphero SPRK+
type SPRKPlusDriver struct {
*ollie.Driver
}
// NewDriver creates a Driver for a Sphero SPRK+
func NewDriver(a ble.BLEConnector) *SPRKPlusDriver {
d := ollie.NewDriver(a)
d.SetName(gobot.DefaultName("SPRKPlus"))
return &SPRKPlusDriver{
Driver: d,
}
}