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

Function verifyLEDFrame

tests/fl/chipsets/encoders/sm16716.hpp:31–36  ·  view source on GitHub ↗

Helper: Verify RGB LED frame at specific offset (3 bytes)

Source from the content-addressed store, hash-verified

29
30// Helper: Verify RGB LED frame at specific offset (3 bytes)
31static void verifyLEDFrame(const fl::vector<fl::u8>& data, size_t offset, fl::u8 r, fl::u8 g, fl::u8 b) {
32 FL_REQUIRE(data.size() >= offset + 3);
33 FL_CHECK(data[offset + 0] == r); // Red
34 FL_CHECK(data[offset + 1] == g); // Green
35 FL_CHECK(data[offset + 2] == b); // Blue
36}
37
38using namespace test_sm16716;
39

Callers 1

sm16716.hppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected