Hi guys, I found perfect code for what I want to do at the

Hi guys, I found perfect code for what I want to do at the link below, but I cannot get the brightness button to work. By the way, my slight difference is LED type is declared as WS2812B (not 2811 in the code), nz number of LED is 27 (not 50), and color order is GRB (not RGB).

Other than that the code I pasted in is identical. Again, all the patterns switch beautifully, but the brightness, nada. (Note that I tested all my wiring and the switch – if I swap them the alternative switch works for pattern, again not for brightness.

Ideas? This last bit will allow me to complete my project.
https://gist.github.com/hsiboy/fe91fa561373ef964bd7

You never assign the brightness from brightnessCounter. I see

void FillLEDsFromPaletteColors( uint8_t colorIndex)
{
uint8_t brightness = 255;

}

which is where you should probably be saying

uint8_t brightness = brightnessCounter;

@Josh_Ward bam! It’s fixed, thanks so much.