23 Serial.println(
"resetting");
28void fadeall() {
for(
int i = 0; i < NUM_LEDS; i++) { leds[i].
nscale8(250); } }
31 static uint8_t hue = 0;
34 for(
int i = 0; i < NUM_LEDS; i++) {
36 leds[i] =
CHSV(hue++, 255, 255);
48 for(
int i = (NUM_LEDS)-1; i >= 0; i--) {
50 leds[i] =
CHSV(hue++, 255, 255);
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
@ RGB
Red, Green, Blue (0012)
Implements a simple red square effect for 2D LED grids.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Representation of an RGB pixel (Red, Green, Blue)
FASTLED_FORCE_INLINE CRGB & nscale8(uint8_t scaledown)
Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.