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

Function Pixel_initializeStartAnimations

Macro/PixelMap/pixel.c:2611–2630  ·  view source on GitHub ↗

Starting Animation setup

Source from the content-addressed store, hash-verified

2609
2610// Starting Animation setup
2611void Pixel_initializeStartAnimations()
2612{
2613 // Animations
2614 for ( uint8_t pos = 0; pos < Pixel_AnimationStackSize; pos++ )
2615 {
2616 uint8_t index = settings.animations[pos].index;
2617 if (index != 255) {
2618 AnimationStackElement element = Pixel_AnimationSettings[ index ];
2619
2620 // Only update state if not already defined
2621 if ( ( element.state & 0x7F ) == AnimationPlayState_Pause )
2622 {
2623 element.state = AnimationPlayState_Start;
2624 }
2625
2626 element.pos = settings.animations[pos].pos;
2627 Pixel_addAnimation( &element, CapabilityState_None );
2628 }
2629 }
2630}
2631
2632// Pixel Procesing Loop
2633inline void Pixel_process()

Callers 3

Pixel_processFunction · 0.85
Pixel_setupFunction · 0.85
Pixel_loadConfigFunction · 0.85

Calls 1

Pixel_addAnimationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…