Skip to content

Commit

Permalink
LED lights turn on when buttons A and B on gamepad two are pressed(pr…
Browse files Browse the repository at this point in the history
…ess x at the same time)
  • Loading branch information
abirarun committed Oct 13, 2024
1 parent 2c49c16 commit 7b6727e
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,17 @@ public void display (double color){
boolean yellow = ((green - blue) > 100) && ((green - red) > 100) && (red >= 350);

if (rred){
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_LAVA_PALETTE);
}
else{
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.BLACK);
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.RED);
telemetry.addLine("VERYRED");
}

if(bblue) {
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_OCEAN_PALETTE);
}
else {
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.BLACK);

else if(bblue) {
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.BLUE);
telemetry.addLine("VERYBLUE");
}
if(yellow){

else if(yellow){
lights.setPattern(RevBlinkinLedDriver.BlinkinPattern.YELLOW);
}
else {
Expand Down

0 comments on commit 7b6727e

Please sign in to comment.