Helper to verify preamble structure @param bytes Captured byte stream @param expected_preamble Expected preamble bytes
| 225 | /// @param bytes Captured byte stream |
| 226 | /// @param expected_preamble Expected preamble bytes |
| 227 | void verifyPreamble(fl::span<const uint8_t> bytes, fl::span<const uint8_t> expected_preamble) { |
| 228 | FL_REQUIRE_EQ(expected_preamble.size(), 15); |
| 229 | for (size_t i = 0; i < expected_preamble.size(); i++) { |
| 230 | FL_CHECK_EQ(bytes[i], expected_preamble[i]); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | /// Helper to verify pixel data (RGBW 8-bit mode) |
| 235 | /// Verifies that the byte stream contains the expected RGBW pixel data |