diff options
author | hesicong <derekhe@april1985.com> | 2015-07-05 16:54:41 +0800 |
---|---|---|
committer | hesicong <derekhe@april1985.com> | 2015-07-05 16:54:41 +0800 |
commit | 528c9768ac2c893371ea0e3eb9c17124aeb5d6ea (patch) | |
tree | 28222ec019138042f44ca13bc9b34ccedc634a8c | |
parent | bae7ce9ee77ebe5a084648d4b09c1e2401796b06 (diff) | |
parent | f8bc66282afa752a91aea6fc87dd4f0a323986a5 (diff) | |
download | waveshare-7inch-touchscreen-driver-528c9768ac2c893371ea0e3eb9c17124aeb5d6ea.tar.xz waveshare-7inch-touchscreen-driver-528c9768ac2c893371ea0e3eb9c17124aeb5d6ea.zip |
Merge pull request #1 from icebob/master
100% cpu usage on one core of CPU
Diffstat (limited to '')
-rw-r--r-- | touch.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ def read_and_emulate_mouse(deviceFound): b = f.read(25) (tag, btnLeft, x, y) = struct.unpack_from('>c?HH', b) print(btnLeft, x, y) + time.sleep(0.01) if btnLeft: device.emit(uinput.ABS_X, x, True) |