MCPcopy Create free account
hub / github.com/FastLED/FastLED / setPixelsRed

Function setPixelsRed

tests/fl/stl/not_null.cpp:253–258  ·  view source on GitHub ↗

Helper function demonstrating typical FastLED usage pattern

Source from the content-addressed store, hash-verified

251
252// Helper function demonstrating typical FastLED usage pattern
253static void setPixelsRed(not_null<fl::CRGB*> leds, int count) {
254 // No need to check for null - guaranteed by type
255 for (int i = 0; i < count; i++) {
256 leds[i] = fl::CRGB(255, 0, 0);
257 }
258}
259
260FL_TEST_CASE("not_null - function parameter pattern") {
261 fl::CRGB pixels[5];

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

CRGBClass · 0.50

Tested by

no test coverage detected