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. 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