def led(led_index, intensity):
    """Compatibility function for old PiGlow library
    Accepts LED between 1 and 18.
    Calls set(led - 1, intesity)

    :param led_index: LED number from 1 to 18
    :param intensity: brightness from 0 to 255

    """
    set(led_index - 1, intensity)
