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

Function Pixel_printConfig

Macro/PixelMap/pixel.c:3661–3708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3659}
3660
3661void Pixel_printConfig() {
3662 // Animations
3663 print(" \033[35mAnimations\033[0m" NL);
3664 for ( uint8_t pos = 0; pos < Pixel_AnimationStackSize; pos++ )
3665 {
3666 uint8_t index = settings.animations[pos].index;
3667 uint8_t fpos = settings.animations[pos].pos;
3668 if (index != 255) {
3669 print("AnimationStack.stack[");
3670 printInt8(pos);
3671 print("]->index = ");
3672 printInt8(index);
3673 print("; pos = ");
3674 printInt8(fpos);
3675 print(NL);
3676 }
3677 }
3678
3679 // Fade periods
3680 print(NL " \033[35mFades\033[0m" NL);
3681 for (uint8_t profile=0; profile<4; profile++)
3682 {
3683 for (uint8_t config=0; config<4; config++)
3684 {
3685 PixelPeriodConfig period = settings.fade_periods[profile][config];
3686 print("FadeConfig[");
3687 printInt8(profile);
3688 print("][");
3689 printInt8(config);
3690 print("] = {");
3691 printInt8(period.start);
3692 print(", ");
3693 printInt8(period.end);
3694 print("}");
3695 print(NL);
3696 }
3697 }
3698
3699 // Profile brightness
3700 print(NL " \033[35mProfile Brightnesses\033[0m" NL);
3701 for (uint8_t profile=0; profile<4; profile++)
3702 {
3703 printInt8(profile);
3704 print(" ");
3705 printInt8(settings.fade_brightness[profile]);
3706 print(NL);
3707 }
3708}
3709#endif

Callers

nothing calls this directly

Calls 1

printInt8Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…