Hi,
The variables that you have declared are all integers. So they can't accept hex values. Try accepting a character array for the hex value, drop the 1st 2 elements - which is 0x ( U can check to see if it is 0x ) , and then convert the hex to an Integer.
TO do the conversions to Integer ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.