FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 59 of file FxNoiseRing.ino.

59 {
60 Serial.begin(115200);
61 // ScreenMap is purely something that is needed for the sketch to correctly
62 // show on the web display. For deployements to real devices, this essentially
63 // becomes a no-op.
66 .setCorrection(TypicalLEDStrip)
67 .setDither(DISABLE_DITHER)
68 .setScreenMap(xyMap);
69 FastLED.setBrightness(brightness);
70 pir.activate(millis()); // Activate the PIR sensor on startup.
71}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
#define COLOR_ORDER
#define LED_PIN
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
CLEDController * controller
UISlider brightness("Brightness", 1, 0, 1)
WS2811 controller class.
Definition FastLED.h:258
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f)
Definition screenmap.cpp:21
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:11
XYMap xyMap
Definition gfx.cpp:8
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19

References brightness, fl::ScreenMap::Circle(), COLOR_ORDER, controller, DISABLE_DITHER, FastLED, LED_PIN, leds, NUM_LEDS, pir, TypicalLEDStrip, and xyMap.

+ Here is the call graph for this function: