Return to site

Python serial port example windows

broken image
broken image

To use this code, you will need to connect the Tic’s TX, RX, and GND pins to a serial port on your computer or a USB-to-serial adapter as described in Section 4.5.

broken image

It demonstrates how to set the target position of the Tic and how to read variables from it. The example Python code below uses the pySerial library to communicate with the Tic via serial.