This sketch is fully compatible with the FastLED web compiler.
This sketch is fully compatible with the FastLED web compiler. To use it do the following:
- Install Fastled:
pip install fastled
- cd into this examples page.
- Run the FastLED web compiler at root:
fastled
- When the compiler is done a web page will open.
#include <Arduino.h>
#ifdef __EMSCRIPTEN__
#define LED_PIN 3
#define BRIGHTNESS 96
#define COLOR_ORDER GRB
#define NUM_LEDS 256
for (int16_t i = 0; i < num; i++) {
}
}
}
}
.setScreenMap(screenmap);
.setScreenMap(screenmap2);
}
}
#else
Serial.begin(115200);
Serial.println("setup");
}
Serial.println("loop");
}
#endif
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void push_back(const T &value)
FastLED's Elegant JSON Library: fl::Json
HeapVector< T, Allocator > vector
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)