diff --git a/play.py b/play.py index 5aa6d6b..9468d1d 100644 --- a/play.py +++ b/play.py @@ -1,135 +1,136 @@ -try: - from lib.datatypes import * #local script +try: #local script + from lib.datatypes import PictureMatrix, RGB, FusionLightData, FusionLightEffect, FusionLightColor, FusionLightDirection from lib.device import get_device -except ImportError: - from .lib.datatypes import * #as a module +except ImportError: #as a module + from .lib.datatypes import PictureMatrix, RGB, FusionLightData, FusionLightEffect, FusionLightColor, FusionLightDirection from .lib.device import get_device from cv2.typing import MatLike +from typing import List import sys, cv2, time, numpy, atexit #10 is actually not transient - it is persistent as a secondary profile but for our purposes we can treat it as transient #since nobody should have the need to write to a profile number this high (switching between profiles require os interaction anyways so might as well write a new image) TRANSIENT_ID = 10 if len(sys.argv) < 2: print(f'Usage: {__file__}