@staticmethod
def dim_all_outputs(percent, ramp, is1805=False):
    """Generate a dim command for all output-ports.

        :param    int    percent:    Brightness in percent 0..100
        :param    int    ramp:       Ramp value
        :param    bool   is1805:     True if the target module's firmware is
                                     180501 or newer, otherwise False
        :return:    The PCK command (without address header) as text
        :rtype:    str
        """
    percent_round = round(percent * 2)
    if is1805:
        pck = 'OY{0:03d}{0:03d}{0:03d}{0:03d}{1:03d}'.format(percent_round,
            ramp)
    elif percent_round == 0:
        pck = 'AA{:03d}'.format(ramp)
    elif percent_round == 200:
        pck = 'AE{:03d}'.format(ramp)
    else:
        pck = 'AH{:03d}'.format(percent_round / 2)
    return pck
