From 5a6c934baaae6a8c919679ddf6c9b2b6a6c30393 Mon Sep 17 00:00:00 2001 From: Richard Benjamin Allen Date: Thu, 17 Nov 2022 13:11:33 +0000 Subject: [PATCH 1/2] Fixed: Support windows Needs testing on different version of Windows 32/64 bit, but this seems to work on Windows 10. Closes: #5 --- rti_py.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rti_py.py b/rti_py.py index c65d0cf..00cf477 100644 --- a/rti_py.py +++ b/rti_py.py @@ -48,6 +48,8 @@ def get_serial_port() -> Optional[str]: return "/dev/" + os.popen("dmesg | egrep ttyACM | cut -f3 -d: | tail -n1").read().strip() elif sys.platform == "darwin": return "/dev/cu.usbmodem1411" + elif sys.platform == "win32": + return "COM3" return None From 13fa563775d8e7db533f418b1540884dd7723449 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Thu, 25 May 2023 23:29:49 +0100 Subject: [PATCH 2/2] Fixed: Update Python version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d70507..a107af1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ into your Arduino IDE, the project can be found here: https://github.com/jprodge Use the Arduino IDE to upload the code from the `arduino/rti_py` directory to the Ardunio Uno in the usual way. -To install the Python script needed to communicate with the Arduino board first install `Python 3.6` and `pipenv` as +To install the Python script needed to communicate with the Arduino board first install `Python 3.8` and `pipenv` as per your computer's OS. **N.B.** Only Linux or MacOS are currently supported by this project.