Can anyone explain why the following doesn\'t compile?
byte b = 255 << 1
The error:
Constant value \'510\' can
And since << has a higher precedence than & you can save the brackets:
byte b = 255 << 1 & 0xff;