MCPcopy Create free account
hub / github.com/kiibohd/controller / Pixel_LEDTest_capability

Function Pixel_LEDTest_capability

Macro/PixelMap/pixel.c:812–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810}
811
812void Pixel_LEDTest_capability( TriggerMacro *trigger, uint8_t state, uint8_t stateType, uint8_t *args )
813{
814 CapabilityState cstate = KLL_CapabilityState( state, stateType );
815
816 switch ( cstate )
817 {
818 case CapabilityState_Initial:
819 // Only activate on press event
820 break;
821 case CapabilityState_Debug:
822 // Display capability name
823 print("Pixel_LEDTest_capability(test)");
824 return;
825 default:
826 return;
827 }
828
829 // Get arguments
830 PixelTest test = *(PixelTest*)(&args[0]);
831 uint16_t index = *(uint16_t*)(&args[1]);
832
833 // If index is not set to 0xFFFF, make sure to update the test position
834 if ( index != 0xFFFF )
835 {
836 Pixel_testPos = index;
837 }
838
839 // Set the test mode
840 Pixel_testMode = test;
841}
842
843
844

Callers

nothing calls this directly

Calls 1

KLL_CapabilityStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…