...
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
PlatformIO: Home
This brings you to the homepage for setting up a PlatformIO project/libraries
PlatformIO: Build
This compiles your code to make sure it builds
PlatformIO: Upload
This actually uploads the code to the board
Note you need to be connected to the board via a serial connection
PlatformIO: Serial Monitor
This begins a serial monitor of whichever COM/dev port the board is using
This is where you can view
Serial.print("")
statements, similar to Arduino IDE
PlatformIO: New Terminal
Just opens a new terminal