From 707b24dd07236243269cf092728f85172e94e8a4 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 8 Aug 2021 22:02:52 -0400 Subject: initial commit --- .../serial/tests/proof_of_concepts/python_serial_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/serial/tests/proof_of_concepts/python_serial_test.py (limited to 'source/serial/tests/proof_of_concepts/python_serial_test.py') diff --git a/source/serial/tests/proof_of_concepts/python_serial_test.py b/source/serial/tests/proof_of_concepts/python_serial_test.py new file mode 100644 index 0000000..6f92b84 --- /dev/null +++ b/source/serial/tests/proof_of_concepts/python_serial_test.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import serial, sys + +if len(sys.argv) != 2: + print "python: Usage_serial_test " + sys.exit(1) + +sio = serial.Serial(sys.argv[1], 115200) +sio.timeout = 250 + +while True: + sio.write("Testing.") + print sio.read(8) + -- cgit v1.2.3