I'm not sure if there is a better way to do this, but you could:
Use the bit shift operator on the byte (call it inByte) to shift the bits so that the bit we want is in the least significant place:
For example, if we want the second bit:
inByte = 13; (00001101)
shifted = inByte >> 2...