Class RgbLed

    • Constructor Detail

      • RgbLed

        public RgbLed​(int redPin,
                      int greenPin,
                      int bluePin)
               throws RuntimeIOException
        Parameters:
        redPin - GPIO for the red LED.
        greenPin - GPIO for the green LED.
        bluePin - GPIO for the blue LED.
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • RgbLed

        public RgbLed​(GpioDeviceFactoryInterface deviceFactory,
                      int redPin,
                      int greenPin,
                      int bluePin)
               throws RuntimeIOException
        Parameters:
        deviceFactory - Device factory to use to provision this device.
        redPin - GPIO for the red LED.
        greenPin - GPIO for the green LED.
        bluePin - GPIO for the blue LED.
        Throws:
        RuntimeIOException - If an I/O error occurred.