From ec7bca0a3d0407f632d86b57ac2bdc6dc84f0252 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 10 Nov 2018 02:32:12 +0200 Subject: [PATCH] Update openmv Python module. * Make it work with Python2/3 * Fix command line args. * Fix pygame key events handling. --- tools/pyopenmv.py | 21 ++++++++++------- tools/pyopenmv_fb.py | 56 +++++++++++++++++++------------------------- 2 files changed, 36 insertions(+), 41 deletions(-) diff --git a/tools/pyopenmv.py b/tools/pyopenmv.py index 0c35c0031..6d7898123 100755 --- a/tools/pyopenmv.py +++ b/tools/pyopenmv.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # This file is part of the OpenMV project. # Copyright (c) 2013/2014 Ibrahim Abdelkader # This work is licensed under the MIT license, see the file LICENSE for details. @@ -105,7 +105,7 @@ def fb_dump(): def exec_script(buf): __serial.write(struct.pack("') + if len(sys.argv)!= 3: + print ('usage: pyopenmv.py