def _encodeTemp(self,temp):
    if (temp<0):
      temp = temp*128
    else:
      temp = temp*128 + 65536
    return [temp >> 8]+[temp & 0xff]
_encodeTemp(temp)
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/ADT7310/adt7310.py/ADT7310._encodeTemp