Ok, here are some things I don't understand. I have defined variables:
byte b = 0x10; const byte a = 0x08;
When I try
b = b & a
it says "Cannot implicitly convert int to byte." How can byte & byte be an int??
Second thing. I have following:
b = (byte)(b & ~a);
Compiler has no problem with that. BUT if I use
b &= (byte) ~a;
it says "Constant value -9 cannot be converted to byte."
What's the difference between those two notations?
Thanks for your answers.