def set_clear_on_exit(value=True):
    """Set whether the APA102 should be cleared upon exit

    By default the APA102 will turn off the pixels on exit, but calling::

        set_clear_on_exit(False)

    Will ensure that it does not.

    :param value: True or False (default True)
    """
    global _clear_on_exit
    _clear_on_exit = value
