Class LedBarGraph

    • Constructor Detail

      • LedBarGraph

        public LedBarGraph​(int... gpios)
      • LedBarGraph

        public LedBarGraph​(LED... leds)
      • LedBarGraph

        public LedBarGraph​(List<LED> leds)
    • Method Detail

      • on

        public void on()
      • off

        public void off()
      • toggle

        public void toggle()
      • blink

        public void blink()
      • blink

        public void blink​(float onTime,
                          float offTime,
                          int iterations,
                          Action stopAction)
      • getValue

        public float getValue()
        Get the proportion of LEDs currently lit.
        Returns:
        Proportion of LEDs lit. 0..1 if lit from left to right, 0..-1 if lit from right to left.
      • setValue

        public void setValue​(float newValue)
        Light a proportion of the LEDs using value as a percentage.
        Parameters:
        newValue - Proportion of LEDs to light. 0..1 lights from left to right, 0..-1 lights from right to left.