I try to do a little stitching of bytes by shifting. Here is my example code:
long a = 0;
a = 1 << 16;
So a should be = 65.563 afterwards imho.
My Serial.print tells me that a= 0;
When i try 1 << 15; everything is ok; then a= 256;
long has a size of 32 bit, so the << 16 command fits in.
I am confused. Has someone an idea what is going on?
I use a Arduino Mega 2560.
Thank you in advance.