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

Function Pixel_addDefaultAnimation

Macro/PixelMap/pixel.c:894–905  ·  view source on GitHub ↗

Locates animation memory slot using default settings for the animation Initiates animation to process on the next cycle Returns 1 on success, 0 on failure to allocate

Source from the content-addressed store, hash-verified

892// Initiates animation to process on the next cycle
893// Returns 1 on success, 0 on failure to allocate
894uint8_t Pixel_addDefaultAnimation( uint32_t index )
895{
896 if ( index >= Pixel_AnimationSettingsNum_KLL )
897 {
898 warn_print("Invalid AnimationSetting index: ");
899 printInt32( index );
900 print( NL );
901 return 0;
902 }
903
904 return Pixel_addAnimation( (AnimationStackElement*)&Pixel_AnimationSettings[ index ], CapabilityState_None );
905}
906
907// Allocates animaton memory slot
908// Initiates animation to process on the next cycle

Callers

nothing calls this directly

Calls 2

printInt32Function · 0.85
Pixel_addAnimationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…