Created
October 17, 2016 15:33
-
-
Save RobotGrrl/138863178c2739af90fd2d7b063fab21 to your computer and use it in GitHub Desktop.
randyIsAwesome RGB Shades
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void randyIsAwesome() { | |
// startup tasks | |
if (effectInit == false) { | |
effectInit = true; | |
effectDelay = 100; | |
} | |
for (byte x = 0; x < kMatrixWidth; x++) { | |
for (int y = 0; y < kMatrixHeight; y++) { | |
leds[XY(x, y)] = CHSV(cycleHue, 40, 40); | |
} | |
} | |
int start_x = 1; | |
int end_y = 3; | |
int offset = 9; | |
CRGB coolColour = CHSV(random8(10) * 25, 190, 255); | |
leds[XY(start_x, end_y)] = coolColour; | |
leds[XY(start_x+1, end_y-1)] = coolColour; | |
leds[XY(start_x+2, end_y-2)] = coolColour; | |
leds[XY(start_x+3, end_y-1)] = coolColour; | |
leds[XY(start_x+4, end_y)] = coolColour; | |
leds[XY(start_x+offset, end_y)] = coolColour; | |
leds[XY(start_x+offset+1, end_y-1)] = coolColour; | |
leds[XY(start_x+offset+2, end_y-2)] = coolColour; | |
leds[XY(start_x+offset+3, end_y-1)] = coolColour; | |
leds[XY(start_x+offset+4, end_y)] = coolColour; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment