Hay all I have been making a VU Meter/Visualizer (it isn’t a calibrated device, just something to have flashy lights with music ;). I’ve started to add some more visualizer type modes using palettes and “ColorFromPalette”. Looking at the documentation it says about blend and noblend but I have added that in and there is no change
The code is:
for (byte i = NUM_LEDS / 2; i > 0; i–) {
leds[i - 1] = ColorFromPalette(currentPalette, paletteIndexL, 255, NOBLEND);
paletteIndexL += 10;
}
for (byte i = NUM_LEDS / 2; i < NUM_LEDS; i++) {
leds[i] = ColorFromPalette(currentPalette, paletteIndexR);
paletteIndexR += 10;
}
Really I am looking for a cheap way to have two options for the display, one where it smooths the colours and one where they are still seperate. I had hoped the NOBLEND would to the second but I don’t seem to be able to make it work. The attached image shows the result. The upper one I wanted to be distinct bands and the lower should be as it is, blended together. Am I miss understanding what the function does?