PinPong Library Installation Guide
This guide is your go-to resource for installing the PinPong library on various operating systems.
Unihiker has already integrated the Pinpong library, so there is no need to install it.
Whether you're a seasoned developer or a beginner, this guide simplifies your PinPong installation journey. Let's get started!
1. Installation on Linux
You can install PinPong by entering sudo pip install pinpong in the terminal.
$ sudo pip install pinpong

For help, enter pinpong in the terminal to output the current version information, official documentation URL, library list view, and port number.
Starting Your First Program
- Connect the Arduino Uno board to your computer.
- Copy the code of the "blink" example program from the "PINPONG Examples" in this document to your Python editor and run the code.
- Next, please check out other tutorials or run other example programs to further your learning.

2. Installation on MacOS X
Start with the command line (open any Finder window, type Shift+Command+U), then double-click "Terminal". Enter the command line to install the PinPong library.
$ pip install pinpong


For help, enter pinpong in the terminal to output the current version information, official documentation URL, library list view, and port number.
Starting Your First Program
- Connect the Arduino Uno board to your computer.
- Copy the code of the "blink" example program from the "PINPONG Examples" in this document to your Python editor and run the code.
- Next, please check out other tutorials or run other example programs to further your learning.
You can run the "blink" example program with the following command:
$ python blink.py
3. Installing on Windows
- Install Python3. The PinPong library depends on Python, so please make sure Python3 is installed on your computer. If it is already installed, you can skip this step.
If you have not installed Python3, you need to install it. Python download address: Click to Open.

For Windows platform, click on Windows, then choose the latest version to download (you can also choose other versions).


After the download is completed, follow the guide to install. Make sure to tick "add to path" in the final step of the installation to add Python to the environment variables.

- Open the command prompt. Use the win+R shortcut, then type
cmd.

- Install the PinPong library. In the terminal, type
pip install pinpongand wait a moment for the installation to complete.
Note: If the installation fails due to slow internet, you can specify a domestic source for installation:pip install pinpong -i http://mirrors.aliyun.com/pypi/simple/.

- For help, enter
pinpongin the terminal to output the current version information, official documentation URL, library list view, and port number.

Starting Your First Program
- Connect the Arduino Uno board to your computer.
- Open the IDLE editor and create a new file (New File).
- Copy the code of the "blink" example program from the "PINPONG Examples" in this document to IDLE, click "RUN > Run Module" or press F5 on your keyboard to run the code.
- The Python Shell window will display the PinPong logo and running status, the Uno board's LED will start to blink, indicating a successful run. You can stop the code from running by pressing the Ctrl+C keys on your keyboard.
- Next, please check out other tutorials or run other example programs to further your learning.


4. Updates & Uninstallation
Updating the PinPong Library
PinPong is currently in a state of rapid development and updates, so it will be updated from time to time. You can update the version with the following command:
$ pip install -U pinpong
Uninstalling the PinPong Library
If the PinPong library behaves abnormally, you can try using the following command to uninstall the PinPong library and then reinstall it using the install command:
$ pip uninstall pinpong
Was this article helpful?
