From e625c20f0767abc42fe7720414f844ed221316ce Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 26 Sep 2021 16:45:34 -0500 Subject: [PATCH] logging pixel colors --- src/app/ss_blumen_lumen/blumen_lumen.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index 17ed7e0..46b330e 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -802,10 +802,9 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) // Dim the leds based on temp data if (!BLState->DEBUG_IgnoreWeatherDimmingLeds) { - Log_Message(GlobalLogBuffer, "Dimming: %f %d %d\n", - BLState->BrightnessPercent, - State->LedSystem.BuffersCount, - State->LedSystem.LedsCountTotal); + led_buffer B0 = State->LedSystem.Buffers[0]; + pixel P0 = B0.Colors[0]; + for (u32 i = 0; i < State->LedSystem.BuffersCount; i++) { led_buffer Buffer = State->LedSystem.Buffers[i]; @@ -817,6 +816,14 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) Color->B = Color->B * BLState->BrightnessPercent; } } + + led_buffer B1 = State->LedSystem.Buffers[0]; + pixel P1 = B1.Colors[0]; + + Log_Message(GlobalLogBuffer, "Dimming: %f %d %d %d - %d %d %d\n", + BLState->BrightnessPercent, + P0.R, P0.G, P0.B, + P1.R, P1.G, P1.B); } // Send Status Packet