2022_leds
This is an old revision of the document!
LED's
2x Strips of RGB Addressable LED's
The silicone protective layer started to flake off, didn't affect the performance of the LED's
Github
LED.java
Cool Wave!
public void wave(HSVPreset color, double time) { for (var i = 0; i < buffer.getLength(); i++) { double v = 140 + Math.sin((i - pixelOffset) / (double) buffer.getLength() * Math.PI * 2) * 115; buffer.setHSV(i, color.h, color.v, (int) v); } if (timer.get() < time) { if (pixelOffset == buffer.getLength() - 1) { pixelOffset = 0; } } else { pixelOffset += 1; timer.reset(); } led.setData(buffer); led.start(); }
LED States
Purple Top-Bottom Animation: Indicates the shooter RPM's, solid purple when up to speed
Purple Wave Animation: Indicates that the climber is active and is moving up or down
Solid Alliance Color: The default state of the LED's, no balls detected and no climbing
Half Green: Indicates that a ball is in the top position of the tower
Full Green: Indicates that two balls are in their positions in the tower
2022_leds.1654284928.txt.gz · Last modified: 2022/06/03 15:35 by rfhuang

