Convert 6 digit hex values to 10bit rgb

strtoul().

great thanks.

Your computer application should output values that match the LED driver.

The main reason is that I can send all the values in one packet if they are 6 digit hex values, and also I don't really need that much colour resolution.