Installing on Windows Platform

Installation on Windows Platform

  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.

python1

win_installpython2

win_installpython3

win_installpython4

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

win_installpython5

  1. 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

  1. 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