func (l *RgbLedDriver) State() bool {
	return l.high
}
State return true if the led is On and false if the led is Off
package gpio
import "github.com/hybridgroup/gobot"
type RgbLedDriver struct {
	pinRed     string
	redColor   byte
	pinGreen   string
	greenColor byte
	pinBlue    string
	blueColor  byte
	name       string
	connection DigitalWriter
	high       bool
	gobot.Commander
}
func NewRgbLedDriver(a DigitalWriter, name string, redPin string, greenPin string, bluePin string) *RgbLedDriver {
	l := &RgbLedDriver{
		name:       name,
		pinRed:     redPin,
		pinGreen:   greenPin,
		pinBlue:    bluePin,
		connection: a,
		high:       false,
		Commander:  gobot.NewCommander(),
	}
	l.AddCommand("SetRGB", func(params map[string]interface{}) interface{} {
		r := byte(params["r"].(int))
		g := byte(params["g"].(int))
		b := byte(params["b"].(int))
		return l.SetRGB(r, g, b)
	})
	l.AddCommand("Toggle", func(params map[string]interface{}) interface{} {
		return l.Toggle()
	})
	l.AddCommand("On", func(params map[string]interface{}) interface{} {
		return l.On()
	})
	l.AddCommand("Off", func(params map[string]interface{}) interface{} {
		return l.Off()
	})
	return l
}
func (l *RgbLedDriver) Start() (errs []error) { return }
func (l *RgbLedDriver) Halt() (errs []error) { return }
func (l *RgbLedDriver) Name() string { return l.name }
func (l *RgbLedDriver) Pin() string { return "r=" + l.pinRed + ", g=" + l.pinGreen + ", b=" + l.pinBlue }
func (l *RgbLedDriver) RedPin() string { return l.pinRed }
func (l *RgbLedDriver) GreenPin() string { return l.pinGreen }
func (l *RgbLedDriver) BluePin() string { return l.pinBlue }
func (l *RgbLedDriver) Connection() gobot.Connection {
	return l.connection.(gobot.Connection)
}