I have this code, I'm trying to port from php to c/objective-c:
if ($byteIndex < count($data) ) {
$light = ( ( ($data[$byteIndex] >> $bitIndex) & 1) == 1);
}
But I can't seem to find anywhere what the >> is indicating here. nor the "& 1", for that matter.