Skip to content

Commit

Permalink
gopigo3: correct error in example
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 23, 2017
1 parent 5e2ea8c commit 9dada20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/gopigo3.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import (

func main() {
raspiAdaptor := raspi.NewAdaptor()
gpg3 := g.NewDriver(raspiAdaptor)
gpg3 := gopigo3.NewDriver(raspiAdaptor)

work := func() {
on := uint8(0xFF)
gobot.Every(1000*time.Millisecond, func() {
err := gpg3.SetLED(g.LED_EYE_RIGHT, 0x00, 0x00, on)
err := gpg3.SetLED(gopigo3.LED_EYE_RIGHT, 0x00, 0x00, on)
if err != nil {
fmt.Println(err)
}
err = gpg3.SetLED(g.LED_EYE_LEFT, ^on, 0x00, 0x00)
err = gpg3.SetLED(gopigo3.LED_EYE_LEFT, ^on, 0x00, 0x00)
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit 9dada20

Please sign in to comment.