What\'s the correct way to handle two distinct values being stored in one byte of data. I have a byte that contains two nibbles each containing their own data. I want to read th
Use ANDoperators for both and shift the top nibble four bits to the right.
AND
$brake = $value & 0x0F; $throttle = ($value & 0xF0) >> 4;