def lirc_codes(): """Prints LIRC codes for Combo PWM Mode.""" for i in range(0, 4): for j in range(0, 16): for k in range(0, 16): hex_codes = pf_rc.payload_string(*payload(i, j, k)) lirc_pattern = button_string(*button(i, j, k)) print "\t{}\t\t{}".format(lirc_pattern, hex_codes)
def lirc_codes(): """Prints LIRC codes for Extended Mode.""" for i in range(0, 4): for k, func in enumerate(FUNCTION): if func == "NOT_USED" or func == "RESERVED": continue hex_codes = pf_rc.payload_string(*payload(i, k)) lirc_patterns = button_string(*button(i, k)) print "\t{}\t\t{}".format(lirc_patterns, hex_codes)
def lirc_codes(): """Prints LIRC codes for Combo Direct Mode.""" for i in range(0, 4): for k in range(0, 16): red = k & 0x3 blue = k >> 2 hex_codes = pf_rc.payload_string(*payload(i, red, blue)) lirc_patterns = button_string(*button(i, red, blue)) print "\t{}\t\t{}".format(lirc_patterns, hex_codes)
def lirc_codes(): """Prints LIRC codes for Extended Mode.""" for i in range(0, 4): for k, func in enumerate(FUNCTION): if func == "NOT_USED" or func == "RESERVED": continue hex_codes = pf_rc.payload_string(*payload(i, k)) lirc_patterns = button_string(*button(i, k)) print("\t{}\t\t{}".format(lirc_patterns, hex_codes))
def lirc_codes(): """Prints LIRC codes for Single Output Mode.""" for i in range(0, 4): for j in range(0, 4): for k in range(0, 16): mode = (j & 0x2) >> 1 output = j & 0x1 hex_codes = pf_rc.payload_string(*payload(i, mode, output, k)) lirc_patterns = button_string(*button(i, mode, output, k)) print "\t{}\t\t{}".format(lirc_patterns, hex_codes)