Hi
Sometimes Im a little confused and the smallest solution seems to be the biggest problem.
For example I have a hex number FFFF and I want to print it on a display. I need to print it with the sign in front. So this should be a signed int.
signed int FFFF should be a negative number.
signed int count = 0xFFFF;
display.print (count);
But if I print it on the display, I get 65535.
What do I wrong?
Thanks a lot
Gary
Sometimes Im a little confused and the smallest solution seems to be the biggest problem.
For example I have a hex number FFFF and I want to print it on a display. I need to print it with the sign in front. So this should be a signed int.
signed int FFFF should be a negative number.
signed int count = 0xFFFF;
display.print (count);
But if I print it on the display, I get 65535.
What do I wrong?
Thanks a lot
Gary