Does anyone know how to print the current HSV values of all leds in

Does anyone know how to print the current HSV values of all leds in a simple 1D array?

Thanks!

You would have to convert from RGB back to HSV.

// Convert rgb to hsv. Works best with fully saturated colors.
CRGB rgb;
CHSV hsv;
hsv = rgb2hsv_approximate( rgb );

If you’re working in HSV to begin with you can use a second array to store the HSV values.

I am using HSV I just want to print the HSV values for each led to the serial monitor for debugging purposes.

Is this anything like what you’re looking for?

If not what you’re asking, please give more details, code, and show at what point in the loop you’re wanting to print out the data.

Yes thank you it works great! Would you happen to know a way to fade on leds in a rapid and smooth manner? For one animation I think setting the value looks too abrupt and harsh, I’m looking for a softer effect, but doing a ramp in a for loop is too slow (on an Uno).