MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / isValidLEDFormat

Function isValidLEDFormat

src/config_legacy.cpp:603–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603static bool isValidLEDFormat(LEDFormat ledFormat)
604{
605 switch (ledFormat)
606 {
607 case LED_FORMAT_GRB:
608 case LED_FORMAT_RGB:
609 case LED_FORMAT_GRBW:
610 case LED_FORMAT_RGBW:
611 return true;
612 }
613 return false;
614}
615
616static bool isValidPLEDType(PLEDType pledType)
617{

Callers 1

fromLegacyStorageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected