Led animation failing

Hi folks,

I'm new to this forum and to the MetaWear board, but I can tell you that I'm love with the board.
I'm trying to play with led animations, but my attempts are failing.

Right now, I was expecting that the code bellow would pulse in red then in green and finally in blue, but it pulse in red then it blinks in blue.

            ledController.stop(true);
            redWriter.withHighIntensity((byte) 31).withRiseTime((short) 200)
                    .withHighTime((short) 600).withFallTime((short) 200).withPulseOffset((short)0)
                    .withPulseDuration((short)2600).withRepeatCount((byte) 1).commit();
            greenWriter.withHighIntensity((byte) 31).withRiseTime((short) 200)
                    .withHighTime((short) 600).withFallTime((short) 200).withPulseOffset((short)800)
                    .withPulseDuration((short)2600).withRepeatCount((byte) 1).commit();
            blueWriter.withHighIntensity((byte) 31).withRiseTime((short) 200)
                    .withHighTime((short) 600).withFallTime((short) 200).withPulseOffset((short)1600)
                    .withPulseDuration((short)2600).withRepeatCount((byte) 1).commit();
            ledController.play(false);

And right now I'm trying to fix that, but up until now, without any success.

Thanks in advance,

Comments

This discussion has been closed.