33 for (
int i = 0; i <
length; ++i) {
38 for (
int i = 0; i <
length; ++i) {
39 int n = cols.
array[i];
40 int stagger = i % 2 ? 4 : 0;
41 for (
int j = 0; j < n; ++j) {
43 screen_map.
set(curr_idx++,
xy);
88 for (
int i = 0; i < n; ++i) {
101 FASTLED_WARN(
"\n\n############## COMMIT DRAW ################\n\n");
131 for (
const Color3i* it = middle; it != end; ++it) {
134 for (
const Color3i* it = begin; it != middle; ++it) {
147 for (
const Color3i* it = middle; it != end; ++it) {
148 for (
int i = 0; i < repeat; ++i) {
152 for (
const Color3i* it = begin; it != middle; ++it) {
153 for (
int i = 0; i < repeat; ++i) {
168 for (
int i = 0; i < len; ++i) {
170 const int repeat_count = value_array[i];
172 for (
int k = 0; k < repeat_count; ++k) {
CFastLED FastLED
Global LED strip management instance.
@ APA102
APA102 LED chipset.
central include file for FastLED, defines the CFastLED class/object
unsigned int xy(unsigned int x, unsigned int y)
fl::HeapVector< CRGB > led_buffer_
void RawDrawPixel(const Color3i &c)
void set_draw_offset(int val)
void RawDrawPixels(const Color3i &c, int n)
FrameBuffer frame_buffer_
Color3i * GetIterator(int i)
void DrawSequentialRepeat(int repeat)
void DrawRepeat(const int *value_array, int array_length)
void set(uint16_t index, const vec2f &p)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
LedColumns LedLayoutArray()
ScreenMap init_screenmap()
UIButton buttonAllWhite("All white")
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)