From 9dda00934457417cca92cc063703452439232cbd Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Wed, 8 Apr 2020 03:55:16 -0700 Subject: [PATCH] (+) comments in examples for I2C --- examples/cirque_pinnacle_simpletest.py | 2 +- examples/cirque_pinnacle_usb_mouse.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/cirque_pinnacle_simpletest.py b/examples/cirque_pinnacle_simpletest.py index 4a34d0d..4d2569d 100644 --- a/examples/cirque_pinnacle_simpletest.py +++ b/examples/cirque_pinnacle_simpletest.py @@ -23,7 +23,7 @@ def print_data(timeout=6): """Print available data reports from the Pinnacle touch controller - until there's no touch for a period of ``timeout`` seconds.""" + until there's no input for a period of ``timeout`` seconds.""" print("using {} mode".format("Relative" if tpad.data_mode < ABSOLUTE else "Absolute")) start = time.monotonic() while time.monotonic() - start < timeout: diff --git a/examples/cirque_pinnacle_usb_mouse.py b/examples/cirque_pinnacle_usb_mouse.py index b31d0f5..f72b06f 100644 --- a/examples/cirque_pinnacle_usb_mouse.py +++ b/examples/cirque_pinnacle_usb_mouse.py @@ -38,7 +38,7 @@ def move(timeout=10): """Send mouse X & Y reported data from the Pinnacle touch controller - for a period of ``timeout`` seconds.""" + until there's no input for a period of ``timeout`` seconds.""" if mouse is None: raise OSError("mouse HID device not available.") start = time.monotonic() @@ -46,4 +46,5 @@ def move(timeout=10): data = tpad.report() # only returns fresh data (if any) if data: # is there fresh data? mouse.send_report(data) # not using scroll wheel; nor back/forward butons + start = time.monotonic() mouse.send_report(b'\x00' * 4) # release buttons (just in case)