31 const int length = cols.
length;
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) {
129 for (
const Color3i* it = middle; it != end; ++it) {
132 for (
const Color3i* it = begin; it != middle; ++it) {
145 for (
const Color3i* it = middle; it != end; ++it) {
146 for (
int i = 0; i < repeat; ++i) {
150 for (
const Color3i* it = begin; it != middle; ++it) {
151 for (
int i = 0; i < repeat; ++i) {
166 for (
int i = 0; i < len; ++i) {
168 const int repeat_count = value_array[i];
170 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 pair_xy_float &p)
LedColumns LedLayoutArray()
ScreenMap init_screenmap()
UIButton buttonAllWhite("All white")
pair_xy< float > pair_xy_float
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)