def read_temp(_buff): _temp = [] _temp.append((_buff[14] >> 1) & 0x01) _temp.append((_buff[14] >> 2) & 0x01) _temp.append((_buff[14] >> 3) & 0x01) _temp.append((_buff[14] >> 4) & 0x01) _temp.append((_buff[14] >> 5) & 0x01) _temp.append((_buff[14] >> 6) & 0x01) temp = AC_IR.bit_to_int(_temp, 6, 0) return AC_IR.bit_to_int(_temp, 6, 0)
def read_swing(_buff): _swing = [None] * 3 _swing[0] = (_buff[8] >> 3) & 0x01 _swing[1] = (_buff[8] >> 4) & 0x01 _swing[2] = (_buff[8] >> 5) & 0x01 swing = AC_IR.bit_to_int(_swing, 3, 0) return swing
def read_mode(_buff): _mode = [None] * 3 _mode[0] = (_buff[12] >> 4) & 0x01 _mode[1] = (_buff[12] >> 5) & 0x01 _mode[2] = (_buff[12] >> 6) & 0x01 mode = AC_IR.bit_to_int(_mode, 3, 0) return _mode
def read_fan(_buff): _fan = [] _fan.append(int((_buff[12] >> 1) & 0x01)) _fan.append(int((_buff[12] >> 2) & 0x01)) _fan.append(int((_buff[12] >> 3) & 0x01)) fan = AC_IR.bit_to_int(_fan, 3, 0) return fan
def read_fan(_buff): _fan = [None] * 3 _fan[0] = (_buff[6] >> 4) & 0x01 _fan[1] = (_buff[6] >> 5) & 0x01 _fan[2] = (_buff[6] >> 6) & 0x01 fan = AC_IR.bit_to_int(_fan, 3, 0) return fan
def read_mode(_buff): _mode = [] _mode.append((int)(_buff[12] >> 4) & 0x01) _mode.append((int)(_buff[12] >> 5) & 0x01) _mode.append((int)(_buff[12] >> 6) & 0x01) mode = AC_IR.bit_to_int(_mode, 3, 0) return mode
def read_fan(_buff): _fan = [None] * 3 _fan[0] = (_buff[8] >> 0) & 0x01 _fan[1] = (_buff[8] >> 1) & 0x01 _fan[2] = (_buff[8] >> 2) & 0x01 fan = AC_IR.bit_to_int(_fan, 3, 0) return fan
def read_swing(_buff): _swing = [None] * 3 _swing[0] = (_buff[4] >> 0) & 0x01 _swing[1] = (_buff[4] >> 1) & 0x01 _swing[2] = (_buff[4] >> 2) & 0x01 swing = AC_IR.bit_to_int(_swing, 3, 0) return swing
def read_mode(_buff): _mode = [] _mode[0] = ((_buff[12] >> 4) & 0x01) _mode[1] = ((_buff[12] >> 5) & 0x01) _mode[2] = ((_buff[12] >> 6) & 0x01) mode = AC_IR.bit_to_int(_mode, 3, 0) return mode
def read_mode(_buff): _mode = [None] * 3 _mode[0] = (_buff[6] >> 0) & 0x01 _mode[1] = (_buff[6] >> 1) & 0x01 _mode[2] = (_buff[6] >> 2) & 0x01 mode = AC_IR.bit_to_int(_mode, 3, 0) return mode
def read_swing(_buff): _swing = [None] * 4 _swing[0] = (_buff[16] >> 0) & 0x01 _swing[1] = (_buff[16] >> 1) & 0x01 _swing[2] = (_buff[16] >> 2) & 0x01 _swing[3] = (_buff[16] >> 3) & 0x01 swing = AC_IR.bit_to_int(_swing, 4, 0) return swing
def read_fan(_buff): _fan = [None] * 4 _fan[0] = (_buff[16] >> 4) & 0x01 _fan[1] = (_buff[16] >> 5) & 0x01 _fan[2] = (_buff[16] >> 6) & 0x01 _fan[3] = (_buff[16] >> 7) & 0x01 fan = AC_IR.bit_to_int(_fan, 4, 0) return fan
def read_fan(_buff): _fan = [] _fan.append((_buff[17] >> 0) & 0x01) _fan.append((_buff[17] >> 1) & 0x01) _fan.append((_buff[17] >> 2) & 0x01) _fan.append((_buff[17] >> 3) & 0x01) fan = AC_IR.bit_to_int(_fan, 4, 0) return fan
def read_swing(_buff): _swing = [] _swing[0] = (int)((_buff[13] >> 4) & 0x01) _swing[1] = (int)((_buff[13] >> 5) & 0x01) _swing[2] = (int)((_buff[13] >> 6) & 0x01) _swing[3] = (int)((_buff[13] >> 7) & 0x01) swing = AC_IR.bit_to_int(_swing, 4, 0) return swing
def read_temp(_buff): _temp = [None] * 4 _temp[0] = (_buff[2] >> 4) & 0x01 _temp[1] = (_buff[2] >> 5) & 0x01 _temp[2] = (_buff[2] >> 6) & 0x01 _temp[3] = (_buff[2] >> 7) & 0x01 temp = 15 + AC_IR.bit_to_int(_temp, 4, 0) return temp
def read_fan(_buff): _fan = [] _fan[0] = (int)((_buff[17] >> 0) & 0x01) _fan[1] = (int)((_buff[17] >> 1) & 0x01) _fan[2] = (int)((_buff[17] >> 2) & 0x01) _fan[3] = (int)((_buff[17] >> 3) & 0x01) fan = AC_IR.bit_to_int(_fan, 4, 0) return fan
def read_mode(_buff): _mode = [None] * 4 _mode[0] = (_buff[13] >> 4) & 0x01 _mode[1] = (_buff[13] >> 5) & 0x01 _mode[2] = (_buff[13] >> 6) & 0x01 _mode[3] = (_buff[13] >> 7) & 0x01 mode = AC_IR.bit_to_int(_mode, 4, 0) return mode
def read_swing(_buff): _swing = [] _swing.append((_buff[16] >> 0) & 0x01) _swing.append((_buff[16] >> 1) & 0x01) _swing.append((_buff[16] >> 2) & 0x01) _swing.append((_buff[16] >> 3) & 0x01) swing = AC_IR.bit_to_int(_swing, 4, 0) return swing
def read_fan(_buff): _fan = [] _fan.append((_buff[16] << 4) & 0x01) _fan.append((_buff[16] << 5) & 0x01) _fan.append((_buff[16] << 6) & 0x01) _fan.append((_buff[16] << 7) & 0x01) fan = AC_IR.bit_to_int(_fan, 4, 0) return fan
def read_temp(_buff): _temp = [None] * 4 _temp[0] = (_buff[1] >> 0) & 0x01 _temp[1] = (_buff[1] >> 1) & 0x01 _temp[2] = (_buff[1] >> 2) & 0x01 _temp[3] = (_buff[1] >> 3) & 0x01 temp = 16 + AC_IR.bit_to_int(_temp, 4, 0) return temp
def read_swing(_buff): _swing = [] _swing.append((int)((_buff[9] >> 4) & 0x01)) _swing.append((int)((_buff[9] >> 5) & 0x01)) _swing.append((int)((_buff[9] >> 6) & 0x01)) _swing.append((int)((_buff[9] >> 7) & 0x01)) swing = AC_IR.bit_to_int(_swing, 4, 0) return swing
def read_temp(_buff): _temp = [None] * 5 _temp[0] = (_buff[1] >> 3) & 0x01 _temp[1] = (_buff[1] >> 4) & 0x01 _temp[2] = (_buff[1] >> 5) & 0x01 _temp[3] = (_buff[1] >> 6) & 0x01 _temp[4] = (_buff[1] >> 7) & 0x01 temp = 8 + AC_IR.bit_to_int(_temp, 5, 0) return temp
def read_temp(_buff): _temp = [] _temp.append((int)((_buff[11] >> 4) & 0x01)) _temp.append((int)((_buff[11] >> 5) & 0x01)) _temp.append((int)((_buff[11] >> 6) & 0x01)) _temp.append((int)((_buff[11] >> 7) & 0x01)) temp = 16 + AC_IR.bit_to_int(_temp, 4, 0) #print(temp) return temp
def read_temp(_buff): _temp = [] _temp.append((_buff[16] >> 1) & 0x01) _temp.append((_buff[16] >> 2) & 0x01) _temp.append((_buff[16] >> 3) & 0x01) _temp.append((_buff[16] >> 4) & 0x01) _temp.append((_buff[16] >> 5) & 0x01) temp = AC_IR.bit_to_int(_temp, 5, 0) temp = temp + 10 return temp
def read_temp(_buff): _temp = [] _temp[0] = (int)((_buff[16] >> 1) & 0x01) _temp[1] = (int)((_buff[16] >> 2) & 0x01) _temp[2] = (int)((_buff[16] >> 3) & 0x01) _temp[3] = (int)((_buff[16] >> 4) & 0x01) _temp[4] = (int)((_buff[16] >> 5) & 0x01) temp = AC_IR.bit_to_int(_temp, 5, 0) temp = temp + 10 return temp
def read_fan(_buff): _fan = [None] * 2 _fan[0] = (_buff[16] >> 4) & 0x01 _fan[0] = (_buff[16] >> 4) & 0x01 fan = AC_IR.bit_to_int(_fan, 2, 0) return fan
def read_mode(_buff): _mode = [None] * 2 _mode[0] = (_buff[0] >> 6) & 0x01 _mode[1] = (_buff[0] >> 7) & 0x01 mode = AC_IR.bit_to_int(_mode, 2, 0) return mode
def read_swing(_buff): _swing = [None] _swing[0] = (_buff[0] >> 6) & 0x01 swing = AC_IR.bit_to_int(_swing, 1, 0) return swing
def read_swing(_buff): _swing = [None] * 2 _swing[0] = (_buff[13] >> 4) & 0x01 _swing[1] = (_buff[13] >> 5) & 0x01 swing = AC_IR.bit_to_int(_swing, 2, 0) return swing