PinPong Class - Board Class
Constructor
Creates and initializes a board.
board = PinPong(board_name, port)
-
board_name: The type of the board.
-
port: Set the corresponding port number. If the parameter is omitted, a port will be automatically identified and selected. For information on how to query the port number, see the installation and quick start tutorial. For Linux-based development boards, like Raspberry Pi and Nezha board, this parameter is not required.
-
Note: board_name Naming List
- Rules:
- Simple, short and easy to remember.
- Case-insensitive, all lowercase is recommended in examples.
- Use underscores to distinguish between long words or words that need to distinguish versions.
| Board Name | board_name | Remarks |
|---|---|---|
| Arduino Uno R3 | uno | |
| Arduino Leonardo | leonardo | |
| Micro:bit | microbit | |
| Raspberry Pi | rpi | |
| Unihiker | unihiker | |
| LattePanda | lp | Equivalent to leonardo |
| Nezha Development Board | nezha | |
| Arduino Nano | nano | Not supported yet |
| Arduino Mega1280 | mega1280 | Not supported yet |
| Arduino Mega2560 | mega2560 | Not supported yet |
| Firebeetle ESP32 | firebeetle_esp32 | Not supported yet |
| Firebeetle ESP8266 | firebeetle_esp8266 | Not supported yet |
| ESP32 | esp32 | Not supported yet |
| ESP8266 | esp8266 | Not supported yet |
Method
board.begin()
Connects to the Arduino board, checks the firmware version. If the firmware is not burned or the version is incorrect, it will burn the latest firmware.