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

Installation on Linux Platform

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

  1. Connect the Arduino Uno board to your computer.
  2. Copy the code of the "blink" example program from the "PINPONG Examples" in this document to your Python editor and run the code.
  3. Next, please check out other tutorials or run other example programs to further your learning.

linux_quickstart4

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

Installation on Mac OS X Platform 1

Installation on Mac OS X Platform 2

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

  1. Connect the Arduino Uno board to your computer.
  2. Copy the code of the "blink" example program from the "PINPONG Examples" in this document to your Python editor and run the code.
  3. 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

  1. 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.
    python1
    For Windows platform, click on Windows, then choose the latest version to download (you can also choose other versions).
    win_installpython2
    win_installpython3
    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.
    win_installpython4
  2. Open the command prompt. Use the win+R shortcut, then type cmd.
    win_installpython5
  3. Install the PinPong library. In the terminal, type pip install pinpong and 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/.
    win_installpython6
  4. For help, enter pinpong in the terminal to output the current version information, official documentation URL, library list view, and port number.
    win_installpython7

Starting Your First Program

  1. Connect the Arduino Uno board to your computer.
  2. Open the IDLE editor and create a new file (New File).
  3. 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.
  4. 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.
  5. Next, please check out other tutorials or run other example programs to further your learning.

win_installpython8

win_installpython9

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?

TOP