MARSProgramming / M15

This repo houses the code for MARVIN XV which plays the 2022 FRC game Rapid React
2 stars 0 forks source link

Control LEDs #8

Open WVGman opened 2 years ago

WVGman commented 2 years ago

I want an easily customizable way to control the LEDs on the robot, so here's a list of certain patterns I would want for the LEDs (R is red, W is white). If the :

-Off -Solid Color -Flashing Solid Color (custom input for length of time between flashes) -Gradient (transition from one color to the other over the length of the LED strip) -Solid Stripes (for example, 3 red, 3 white, 3 red, etc), customizable number of stripes, color of the stripes, and length of the stripes -Fade (fade from one color to the other color, more generally from any pattern to any other) -Moving Stripes (slides down the LED strip) -Alternating Colors (for example, one loop cycle it is [RWR], and the next [WRW], could include alternating stripes as well) -Flames -Entirely Random Colors -Organized Random Colors (instead of being totally random, there is an input of the avaliable colors for the randomizer, such as white, red, and blue, then every LED picks a color from the input at random) -Moving Point w/ Fading Trail (there's a point of light that moves along the strip, and there is a slow fade behind it)

WVGman commented 2 years ago

-Gradually Turn On (at first, only one is on, then the next, etc., perhaps have a way to control the time it takes for the whole strip to light up in seconds)