Problem using Serial.println(value,HEX)

Hello everyone!,

I'm very new at all of this and have been working on an interesting project. I have been using a lot of code I've found in this community and many others. I have all my code working the way i want it to using rotary encoders and switches to output data on the serial bus pins 1 and 2 using a UNO board. Here is the problem. The device I'm trying to control looks for commands in HEX but the device requires the HEX values to be in lowercase. Is there any way I can convert them to lowercase when printed to the serial bus?

Any help would be greatly appreciated. XD
Thanks,
Dave.

sprintf should be able to print in lower case. Not as neat as Serial.println(value,HEX), but it works last I checked.
If the "%x" is lower case, the HEX digits will be in lower case.
If the "%X" is upper case, the HEX digits will be upper case.

char tBuf[8];
int value = 14;
sprintf(tBuf,"%x",value); // lower case
Serial.println(tBuf);

That is awesome! I plugged your code in tweaked it a bit and now it works!

Thank you very much!!!
Dave.