LEDBarGraph - can't turn off last LED

Create issue
Issue #16 resolved
Patrick Kutch created an issue

After setting the value of the control to >0, setting back to 0 will not turn off last LED. The following is the modified init() method of Demo.java that will illustrate the issue:

@Override public void init() {
    control = LedBargraphBuilder.create()

    lastTimerCall = System.nanoTime();
    timer = new AnimationTimer() {
        @Override public void handle(final long NOW) {
            if (NOW > lastTimerCall + 100_000_000l) {
                lastTimerCall = NOW;

Comments (1)

  1. Log in to comment