def inc_column(idx, column, by=1):
    """Increment the index and column by the given amount

    :param idx: The current LED matrix
    :param column: The current column
    :param by: How much to move

    :return: Tuple of (idx, column)
    """
    column += by
    while column > 7:
        idx += 8
        column -= 8
    return (idx, column)