jhdscript:
Lol. I already searched and i dont find how to convert string to hex. Very low docs
My problem is not tout convert hex to rgb but string to hex.
That string is already Hex. Hex is not a value. It is a representation of a value.
Each character represent a 4-bit value, 0-15, or 0000 to 1111.
Each character, converted to a value, and placed in byte, an int, a long, signed or unsigned, in the right place in that data type, will yield a value representing the hex string.
You can place the converted values with bitwise operators or by multiplying and adding.
You would be MUCH better off using C strings (char arrays).