Hi guys - I've been looking through documentation, and the forums, and Google, and I can't seem to find out how to do what I want to do. So, I'm asking for help :-)
I'm working with Serial.print, and I am not getting the desired output that I want. Regardless of what data type I pass to Serial.print, I want to receive a full word value back. Basically, I with what I'm doing, I always want the Arduino to return all four characters of the value, even if their values are zeros.
For example, I have an unsigned int, and I want to return it as a full word length hex value - Is this possible with the Arduino regardless of what the value is? If the value for my unsigned int is "10", then I want the Arduino to print "000A". Currently, if I Serial.print(10, HEX); the Arduino just returns "A" as the value.
Is there a way for me to return the data I want to return?
I'm probably answering my own question, but I really don't want to have to go through and bit shift these values... I bet that's what I'm going to have to do...