def ID2ccc(ID, device_number=0):
    """
    Turns a control ID into a combination of channel + cc.
    >>> ID2ccc(0)
    1, 0
    >>> ID2ccc(1)
    1, 1
    >>> ID2ccc(127)
    1, 127
    >>> ID2ccc(128)
    2, 0
    >>> ID2ccc(2047)
    16, 127
    """
    ID -= device_number * 128 * 16
    ID %= 128 * 16
    return (ID // 128) + 1, ID % 128