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

Function getBitPatternName

examples/AutoResearch/AutoResearchTest.cpp:1257–1265  ·  view source on GitHub ↗

Get name of bit pattern for logging

Source from the content-addressed store, hash-verified

1255
1256// Get name of bit pattern for logging
1257const char* getBitPatternName(int pattern_id) {
1258 switch (pattern_id) {
1259 case 0: return "Pattern A (R=0xF0, G=0x0F, B=0xAA)";
1260 case 1: return "Pattern B (R=0x55, G=0xFF, B=0x00)";
1261 case 2: return "Pattern C (R=0x0F, G=0xAA, B=0xF0)";
1262 case 3: return "Pattern D (RGB Solid Alternating)";
1263 default: return "Unknown Pattern";
1264 }
1265}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected