potentially embarrassing untested code for splitting 3 bytes into two 12-bit numbers
hopefully less embarrassing 3-bytes-to-2-12-bit-ints conversion