June 2018
Beginner to intermediate
280 pages
6h 58m
English
In this section, we will look at how to connect Tiva C LaunchPad with Python to receive data from Launchpad in a PC.
The PySerial module can be used for interfacing Launchpad to Python. The detailed documentation of PySerial and its installation procedure for Windows, Linux, and OS X can be found here : http://pyserial.sourceforge.net/pyserial.html
PySerial is available in the Ubuntu package manager and it can be easily installed in Ubuntu using the following command in the Terminal:
$ sudo apt-get install python-serial
After installing the python-serial package, we can write Python code to interface Launchpad. The interfacing code is given in the following section.
The following code imports the ...