P_Wood,
& 0x01 is a single bit mask, essentially we are 'anding' the value (pot) with a hexidecimal one, which results in a one or zero.
pot>>1 is a bit shift right, which shifts the bits of (pot) one to the right.
check out bit shift in the reference section, that may clear things up!