You could do: Code: b1 = constrain(b1, 0, 255);
Thank you, yes I understand. I see now that my code is a little silly haha.