Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 11, 2024
2 parents efc62e9 + b37e4c4 commit 2b6ea7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/frc/robot/subsystems/LEDSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,13 @@ public void rainbow() {
public void movingPixels(int hueHSV, double speed) {
_ledTimer.start();

for (int i = 0; i < _ledBuffer.getLength(); i+=5) {
for (int i = 0; i < _ledBuffer.getLength(); i+=20) {
for (int x = 0; x < 6; x++) {
_ledBuffer.setHSV(x+i, hueHSV, 255, 255);
}
for (int x=6; x < 16; x++) {
_ledBuffer.setHSV(x, 0, 0, 0);
}
}

_ledStrip.setData(_ledBuffer);
Expand Down

0 comments on commit 2b6ea7a

Please sign in to comment.