this seems like a simple task but for some reason I'm having trouble in my researching with finding a way to do it. I need a simple example code and what ever you want to teach me about it is cool to. Thanks.
To help understand the CrackByte code example consider this:
byte data = b11010111;
byte mask = b0000001;
var1 = data & mask; //ref the AND logic table to see that this is always getting the value at the right most bit.
data >> 1; //01101011
var2 = data & mask;
data >> 1; //00110101
var3 = data & mask;
etc...
Now when flash space is a problem, you have reduced your 16byte int array to 2 bytes.
BitMasks are great for tracking stuff that is usually on/off state flags, etc.