The pymata-cpx Client Library


The pymata-cpx library provides an easy to use Python3 API. Using pymata-cpx, you can control and monitor the Playground Express on-board actuators and sensors, remotely from your computer.

Working examples are provided in the Usage section of this guide to illustrate using the API.

Please note that pymata-cpx is not compatible with the firmware provided by Adafruit. You must use the FirmataCPx firmware in conjunction with this client. FirmataCPx is discussed in the next section of this document.

Installation

First, Verify That Python 3 Is Installed On Your Computer

The library and examples were all tested using Python 3.7. Python 2 may work with pymata-cpx, but it is not supported.

If you need to install Python 3 on your computer, please install the latest version of Python 3 using these instructions as a guide.

You may also need to install and verify that the pip package loader is available on your computer. Instructions for installing and checking the pip version may be found here.

Next, Install pymata-cpx

For Windows

Open a command window and type:

pip install pymata-cpx

For Mac And Linux (including Raspberry Pi)

Open a command window and type:

sudo pip3 install pymata-cpx



Copyright (C) 2019 Alan Yorinks. All Rights Reserved.