Variable korrekt deklarieren

This commit is contained in:
Stefan Bethke 2024-02-27 19:53:28 +01:00
parent a29cbd9683
commit a290dccb67

View file

@ -44,7 +44,7 @@ def rgb_to_hex(color: Tuple[int, int, int]) -> str:
return f"#{color[0]:02X}{color[1]:02X}{color[2]:02X}"
def main(args):
global dmx
global dmx, room
parser = argparse.ArgumentParser(prog='foobazdmx', description='Make the lights flicker.')
parser.add_argument('-a', '--artnet', type=str, required=True, default="127.0.0.1", help="Art-Net server")