#include "FastLED.h"
#define DATA_PIN 3
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define NUM_LEDS 200
#define BRIGHTNESS 255
delay(3000);
}
{
}
{
sLastMillis = ms;
sPseudotime += deltams * msmultiplier;
uint16_t brightnesstheta16 = sPseudotime;
for( uint16_t i = 0 ; i <
NUM_LEDS; i++) {
hue16 += hueinc16;
brightnesstheta16 += brightnessthetainc16;
uint16_t b16 = sin16( brightnesstheta16 ) + 32768;
bri8 += (255 - brightdepth);
CRGB newcolor =
CHSV( hue8, sat8, bri8);
pixelnumber = (
NUM_LEDS-1) - pixelnumber;
}
}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::Pride2015 pride(NUM_LEDS)
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
LIB8STATIC u16 beatsin88(accum88 beats_per_minute_88, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.