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 <FastLED.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++) {
map.push_back(vec2f{
x,
y});
}
}
}
}
.setScreenMap(screenmap2);
}
}
#else
}
}
#endif
CRGB leds2[lengths[RedStrip]]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::size size() const FL_NOEXCEPT
FastLED's Elegant JSON Library: fl::json
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>