Is it possible to define each color with its RGB equivalent as a constant. I have tried something like the code below but it returns 0 instead of 127,0,0 as I would like. I would like to do this to make my code more readable. Any guidance? Thanks
But, why would you use char variables or arrays to hold numbers? byte or uint8_t seem more logical to me.
Yes, I know it makes no difference to the compiler, as long as you keep in mind the range of values that can be stored in a char (which is not the same range as can be stored in a byte. even though they are the same size).
It makes a difference to humans trying to follow the code, though.