!! Important !! There's a huge difference between Visual Studio and Visual Studio Code. This document is about Visual Studio, not Visual Studio Code!
First, get PlatformIO to work with Visual studio. The steps that need to be taken for this are the following:
- Install python. This is needed for both PlatformIO and for generating the vcxproj file.
- From https://docs.platformio.org/en/latest/core/index.html#piocore you should install the PlatformIO Core (CLI). Make sure you update the command line search path.
- Use python to generate a vcxproj file:
python generate_vcxproj.py
. - Start Grbl_Esp32.sln
Building is as easy as building your solution.
Uploading can be done from the command line using platformio. For
example, run platformio run --target upload --upload-port COM7
.
For more details, see the documentation of pio.