Import code to Visual Studio: Difference between revisions
Line 22: | Line 22: | ||
Press "import" | Press "import" | ||
You now get something like this: | |||
[[file:MS_Visual_Studio_Code_new_project_4.png | 500px]] | |||
Note that the project gets a name with a timestamp and "Teensy 4.1". This is important if you have imported it multiple times or want to find the code copy. | |||
The file browser shows the configuration file "platformio.ini", here wee need to add the needed libraries. | |||
== Add Arduino Libraries == | == Add Arduino Libraries == |
Revision as of 16:30, 29 August 2024
Back to Basebot
import code
Visual studio can import an Arduino project.
This will make a copy of the Basebot code as a new PlatformIO project.
Open the "Visuel Studio Code" and press the PlatformIO icon .
Using PlatformIO "QUICK ACCESS" -> "PIO Home" -> "Open" and here press "Import Arduino project"
Select Teensy 4.1 as the board type:
The browse to where you saved the Basebot code:
Press "import"
You now get something like this:
Note that the project gets a name with a timestamp and "Teensy 4.1". This is important if you have imported it multiple times or want to find the code copy.
The file browser shows the configuration file "platformio.ini", here wee need to add the needed libraries.
Add Arduino Libraries
Using PlatformIO "QUICK ACCESS" -> "PIO Home" -> "Libraries" libraries can be imported.
Adafruit GFX library MPU9250_asukiaaa