Skip to content

Commit

Permalink
Removed gopigo3 adaptor, updated gopigo3 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesflynn committed Sep 13, 2017
1 parent afbae9f commit ec9a437
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 147 deletions.
7 changes: 4 additions & 3 deletions examples/gopigo3.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import (

"gobot.io/x/gobot"
g "gobot.io/x/gobot/platforms/gopigo3"
"gobot.io/x/gobot/platforms/raspi"
)

func main() {
gopigo3Adaptor := g.NewAdaptor()
gopigo3 := g.NewGoPiGo3Driver(gopigo3Adaptor)
raspiAdaptor := raspi.NewAdaptor()
gopigo3 := g.NewGoPiGo3Driver(raspiAdaptor)

work := func() {
on := uint8(0xFF)
Expand All @@ -32,7 +33,7 @@ func main() {
}

robot := gobot.NewRobot("gopigo3",
[]gobot.Connection{gopigo3Adaptor},
[]gobot.Connection{raspiAdaptor},
[]gobot.Device{gopigo3},
work,
)
Expand Down
7 changes: 4 additions & 3 deletions platforms/gopigo3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import (

"gobot.io/x/gobot"
g "gobot.io/x/gobot/platforms/gopigo3"
"gobot.io/x/gobot/platforms/raspi"
)

func main() {
gopigo3Adaptor := g.NewAdaptor()
gopigo3 := g.NewGoPiGo3Driver(gopigo3Adaptor)
raspiAdaptor := raspi.NewAdaptor()
gopigo3 := g.NewGoPiGo3Driver(raspiAdaptor)

work := func() {
on := uint8(0xFF)
Expand All @@ -42,7 +43,7 @@ func main() {
}

robot := gobot.NewRobot("gopigo3",
[]gobot.Connection{gopigo3Adaptor},
[]gobot.Connection{raspiAdaptor},
[]gobot.Device{gopigo3},
work,
)
Expand Down
120 changes: 0 additions & 120 deletions platforms/gopigo3/gopigo3_adaptor.go

This file was deleted.

Loading

0 comments on commit ec9a437

Please sign in to comment.