@staticmethod
    def pwm8_to_hex_string(source_int):

        lookup_table = {
                        0: '00',  # 00000000
                        1: '01',  # 00000001
                        2: '88',  # 10001000
                        3: '92',  # 10010010
                        4: 'AA',  # 10101010
                        5: 'BA',  # 10111010
                        6: 'EE',  # 11101110
                        7: 'FE',  # 11111110
                        8: 'FF',  # 11111111
                        }

        if 0 <= 8 <= source_int:
            return lookup_table[source_int]
        else:
            raise ValueError("%s is invalid pwm hex value. (Expected value "
                             "0-8)" % (source_int))
dataset/ETHPy150Open missionpinball/mpf/mpf/system/utility_functions.py/Util.pwm8_to_hex_string/swapped operands of `<=`