func NewMotorDriver(a DigitalWriter, name string, speedPin string) *MotorDriver {
	return &MotorDriver{
		name:             name,
		connection:       a,
		SpeedPin:         speedPin,
		CurrentState:     0,
		CurrentSpeed:     0,
		CurrentMode:      "digital",
		CurrentDirection: "forward",
	}
}
NewMotorDriver return a new MotorDriver given a DigitalWriter, name and pin
package gpio
import (
	"github.com/hybridgroup/gobot"
)
type MotorDriver struct {
	name             string
	connection       DigitalWriter
	SpeedPin         string
	SwitchPin        string
	DirectionPin     string
	ForwardPin       string
	BackwardPin      string
	CurrentState     byte
	CurrentSpeed     byte
	CurrentMode      string
	CurrentDirection string
}