Setting Brightness of RGB LED with a remote control

That might be true for your understanding of it but there is no need to do this at all.

You're right. But since it's only for understanding it might be uesefull for those who never did something with hex numbers. But you're right. No programmer would ever write with binary numbers since it be chaos.

why are you still struggling with setting the brightness?

I still don't know how to do that. I somewhat understand bitshifting but I don't know how it can help me going further on.

Right now I am trying to understand this code section:

void variable (byte* color, char bright_steps) {
    if (bright_steps > 0) {
        if ( *color + bright_steps <= 255) {
            *color += bright_steps;
        } else {
            *color = 255;
        }
    } else { 
        if (*color + bright_steps >= 0) {
            *color += bright_steps;
        } else {
            *color = 0;
        }
  }
}

This function is called when those buttons are pressed:

switch (results.value) {
           case BRIGHTNESS_UP : 
               variar (&r, INCREMENTO);
               variar (&g, INCREMENTO);
               variar (&b, INCREMENTO);
               break; 
           case BRIGHTNESS_DOWN : 
               variar (&r, -INCREMENTO);
               variar (&g, -INCREMENTO);
               variar (&b, -INCREMENTO);
               break;
}

PS: "INCREMENTO" has the value of "10".

I try to figured that one out, but I don't understand it. When I implement that with my code I can lower the light with 10 steps but when I reach "0" I can't press any other button to lighten up the led anymore. I have to compile it again and it works. When that Error occurs when I press another button on my remote it tells me "0xFF". When I press the button for gaining brightness the led stwiches from state "off" to turning on blued and green and then the programm freezes.

I try to figure out the problem why it occurs.