/*Braeden Wilson 11/1/23
This code will be used to create a Christmas light show. Used on WS2812B type leds
source code: www.tweaking4all.com/hardware/arduino/adruino-led-strip-effects/#LEDStripEffectColorWipe
This is version 1.0
*/
#include <FastLED.h>
#define PIN 5 //not sure what the PIN will be yet
#define NUM_LEDS 150 //number of leds
#define COLOR_ORDER GRB
#define CHIPSET WS2812B //type of leds
#define BRIGHTNESS 127 //brightness of leds
#define VOLTS 5
#define MAX_AMPS 5000 //value in milliamps
CRGB leds[NUM_LEDS];
void setup(){
FastLED.addLeds<CHIPSET,PIN,COLOR_ORDER>(leds,NUM_LEDS);
FastLED.setMaxPowerInVoltsAndMilliamps(VOLTS,MAX_AMPS);
FastLED.setBrightness(BRIGHTNESS);
FastLED.clear();
FastLED.show();
}
void loop() {
//Rainbow
for(int i = 0; i < 256; i++) {
for(int j = 0; j < NUM_LEDS; j++) {
leds[j] = CHSV(i, 255, 255);
}
FastLED.show();
delay(15);
}
}