I have a byte and I want to test if Bit 1 is turned on.
The condition I wrote is: if(byte & (1 << 0)) return true;
Confusion: I not understand how to read a byte.
Is Bit 1 this? ie. (1 << 0)
00000000
^
Or this? (1 << 1)
00000000
^
In other words, do we read a byte from 0 -7 or 1 - 8?