A “Base 10” and “Base 16” what?
I’m assuming it would be an integer. I say this because of this:
byte SendByte = 0x83;
// results in the number 131 on the Serial Monitor
And if I do this:
SendInt = 23;
SendByte = SendInt; <-- this is the conversion I need to equal 17 and don't know how to get there.
// results in the number 23 on the Serial Monitor
The problem is that I need to find that resulting numeric representation of 0x83 (i.e. 131), just like 0x17=23. I don’t know the word I’m looking for here or the function that will produce the correct value (probably where I was attempting to use sprintf() with “0x%02X”, cuz I thought, hey, that’s what I need for a final result in SendByte. I obviously screwed the pooch on that one. I want to say hex to dec, but that doesn’t seem to be it either. If I could just find the correct terminology for what I want(need) to do, I’ll Google it and learn. And if it is, hextodec, I’m screwed cuz I’ve read 20 pages of that and can’t apply it correctly and why I started this thread.
It’s really hard to help if you don’t provide clear, complete, and coherent requirements.
I honestly try to. What sounds clear and concise to me, is jibberish sometimes to others. (i.e. this topic). LOL