Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Little PlatformIO Overview

PlatformIO “projects” are defined by directories with a valid platformio.ini file in them. For example, the Embedded_Code repo has 2 PlatformIO projects in it: MPU and TCU. To open the PlatformIO project, either click on File -> Open Folder then open the directory, or (for Windows) right-click in the file explorer in the project directory and click Open with Code if you have the option set up for VSCode. You can also open VSCode via the CLI by typing code <Directory you want to open>.

...

Above is a picture of the basic PlatformIO UI bar. The buttons that matter the most (starting from the Home Icon near the middle bottom) is

  1. PlatformIO: Home

    1. This brings you to the homepage for setting up a PlatformIO project/libraries

  2. PlatformIO: Build

    1. This compiles your code to make sure it builds

  3. PlatformIO: Upload

    1. This actually uploads the code to the board

    2. Note you need to be connected to the board via a serial connection

  4. PlatformIO: Serial Monitor

    1. This begins a serial monitor of whichever COM/dev port the board is using

    2. This is where you can view Serial.print("") statements, similar to Arduino IDE

  5. PlatformIO: New Terminal

    1. Just opens a new terminal