Skip to content

Commit

Permalink
gpio: only need to support DigitalReader/DigitalWriter interface
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Apr 15, 2017
1 parent 30df5dc commit 6f3e81e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/gpio/gpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package gpio

import (
"errors"

"gobot.io/x/gobot"
)

var (
Expand Down Expand Up @@ -46,24 +44,20 @@ const (

// PwmWriter interface represents an Adaptor which has Pwm capabilities
type PwmWriter interface {
gobot.Adaptor
PwmWrite(string, byte) (err error)
}

// ServoWriter interface represents an Adaptor which has Servo capabilities
type ServoWriter interface {
gobot.Adaptor
ServoWrite(string, byte) (err error)
}

// DigitalWriter interface represents an Adaptor which has DigitalWrite capabilities
type DigitalWriter interface {
gobot.Adaptor
DigitalWrite(string, byte) (err error)
}

// DigitalReader interface represents an Adaptor which has DigitalRead capabilities
type DigitalReader interface {
gobot.Adaptor
DigitalRead(string) (val int, err error)
}

0 comments on commit 6f3e81e

Please sign in to comment.