diff --git a/platforms/gpio/rgb_led_driver.go b/platforms/gpio/rgb_led_driver.go index 2530e218..02c7b2f0 100644 --- a/platforms/gpio/rgb_led_driver.go +++ b/platforms/gpio/rgb_led_driver.go @@ -68,8 +68,8 @@ func (l *RgbLedDriver) Halt() (errs []error) { return } // Name returns the LedDrivers name func (l *RgbLedDriver) Name() string { return l.name } -// Pin returns the RgbLedDrivers redPin -func (l *RgbLedDriver) Pin() string { return l.pinRed } +// Pin returns the RgbLedDrivers pins +func (l *RgbLedDriver) Pin() string { return "r=" + l.pinRed + ", g=" + l.pinGreen + ", b=" + l.pinBlue } // RedPin returns the RgbLedDrivers redPin func (l *RgbLedDriver) RedPin() string { return l.pinRed } diff --git a/platforms/gpio/rgb_led_driver_test.go b/platforms/gpio/rgb_led_driver_test.go index 96c8bf3c..a139063b 100644 --- a/platforms/gpio/rgb_led_driver_test.go +++ b/platforms/gpio/rgb_led_driver_test.go @@ -23,7 +23,7 @@ func TestRgbLedDriver(t *testing.T) { d := initTestRgbLedDriver(newGpioTestAdaptor("adaptor")) gobottest.Assert(t, d.Name(), "bot") - gobottest.Assert(t, d.Pin(), "1") + gobottest.Assert(t, d.Pin(), "r=1, g=2, b=3") gobottest.Assert(t, d.RedPin(), "1") gobottest.Assert(t, d.GreenPin(), "2") gobottest.Assert(t, d.BluePin(), "3")