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

◆ setup()

void setup ( )

Definition at line 76 of file curr.h.

76 {
77 int width = corkscrew.cylinder_width();
78 int height = corkscrew.cylinder_height();
79
80 frameBuffer.reset(width, height);
82
83 CRGB *leds = frameBuffer.data();
84 size_t num_leds = frameBuffer.size();
85
87
88 // CLEDController *controller =
89 // &FastLED.addLeds<WS2812, 3, BGR>(leds, num_leds);
90
91 fl::ScreenMap screenMap = xyMap.toScreenMap();
92 screenMap.setDiameter(.2f);
93
94 // Set the screen map for the controller
95 controller->setScreenMap(screenMap);
96}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
Definition FastLED.h:123
CLEDController * controller
Base definition for an LED controller.
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
Definition xymap.cpp:36
#define PIN_CLOCK
Definition curr.h:30
@ BGR
Blue, Green, Red (0210)
Definition eorder.h:20
fl::ScreenMap screenMap
Definition Corkscrew.h:70
Corkscrew corkscrew(corkscrewInput)
#define PIN_DATA
Definition Corkscrew.h:28
fl::Grid< CRGB > frameBuffer
Definition Corkscrew.h:71
XYMap xyMap
Definition gfx.cpp:8
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55

References APA102HD, BGR, fl::XYMap::constructRectangularGrid(), controller, corkscrew(), FastLED, frameBuffer, leds, NUM_LEDS, PIN_CLOCK, PIN_DATA, screenMap, and xyMap.

+ Here is the call graph for this function: