Helper function demonstrating typical FastLED usage pattern
| 251 | |
| 252 | // Helper function demonstrating typical FastLED usage pattern |
| 253 | static 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 | |
| 260 | FL_TEST_CASE("not_null - function parameter pattern") { |
| 261 | fl::CRGB pixels[5]; |