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

Function expectedFlagByte

tests/fl/chipsets/encoders/p9813.hpp:30–32  ·  view source on GitHub ↗

Helper to calculate expected P9813 flag byte from RGB values

Source from the content-addressed store, hash-verified

28
29/// Helper to calculate expected P9813 flag byte from RGB values
30u8 expectedFlagByte(u8 r, u8 g, u8 b) {
31 return 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
32}
33
34/// Helper to create BGR pixel array from RGB values
35fl::array<u8, 3> makeBGRPixel(u8 r, u8 g, u8 b) {

Callers 1

p9813.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected