I am learning Arduino. Now I want to change the color of the background.
I am using the Uno Board, and the Sparkfun Color LCD Shield. I am also using the SparkFunColorLCDShield Library.
The easiest way the change the color is to do lcd.clean(HEXCODE);
Example for white background: lcd.clean(0xFFF);
(12Bit of 0xFFFFFF) It's also working with lcd.clean(16777215);
The 16777215 is the decimal number of 0xFFFFFF. Now I need a method, that gives me the decimal number of any HEX Number.
More examples:
- 00FFFFF -> 1048575
- 000FFFF -> 65535