diff --git a/effects.h b/effects.h index 830209f..c2d6a52 100644 --- a/effects.h +++ b/effects.h @@ -173,18 +173,14 @@ void threeDee() { for (byte x = 0; x < kMatrixWidth; x++) { for (byte y = 0; y < kMatrixHeight; y++) { - if (x < 7) { + if (x <= 7) { leds[XY(x, y)] = CRGB::Blue; - } else if (x > 8) { + } else if (x >= 8) { leds[XY(x, y)] = CRGB::Red; - } else { - leds[XY(x, y)] = CRGB::Black; } } } - - leds[XY(6, 0)] = CRGB::Black; - leds[XY(9, 0)] = CRGB::Black; + lensMask(); } diff --git a/utils.h b/utils.h index 3d385b4..0c1c66f 100644 --- a/utils.h +++ b/utils.h @@ -117,6 +117,14 @@ void confirmBlink() { } +void lensMask(){ + const int mask_leds[] = {5,6,7,8,21,22}; // The individual LEDs that make up the "nosebridge" + for(int i=0; i