diff options
Diffstat (limited to 'usb-control/command_processor.py')
-rw-r--r-- | usb-control/command_processor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-control/command_processor.py b/usb-control/command_processor.py index 6d534c6..945c337 100644 --- a/usb-control/command_processor.py +++ b/usb-control/command_processor.py @@ -8,14 +8,17 @@ __license__ = 'MIT' import sys import cp210x_controller + def do_delay(dev): time.sleep(0.3) + def do_list(devs): print("Found %d board%s:" % (len(devs), "s"[len(devs) == 1:])) for idx, dev in enumerate(devs): print("%d: %s %s" % (idx, dev.serial_number, dev.product)) + class CommandProcessor: def __init__(self, product_string, options_dict, command_dict): self.product_string = product_string |