Using Git with VS Code and PlatformIO

preview_player
Показать описание
Note: this isn't a tutorial for Git, VS Code, or PlatformIO, but a tutorial on how to get started using them together. This video also assumes you're at least a little bit familiar with Arduino and the Arduino IDE.

Contents:
00:00 Introduction
01:11 Preparing VS Code for use with Arduino
02:28 Very basics of using PlatformIO
07:00 Using PlatformIO with other Arduino-compatible boards
09:00 Preparing VS Code for use with Git(Hub)
09:32 Creating a new repo (Not necessary if downloading a preexisting one)
09:52 Cloning a repo to VS Code
10:35 Turning a blank repo into PIO project (Not necessary if downloading a preexisting one)
11:10 Very basics of using Git within VS Code

Please consider watching these tutorials first:

VS Code Git status labels:
A - Added (This is a new file that has been added to the repository)
M - Modified (An existing file has been changed)
D - Deleted (a file has been deleted)
U - Untracked (The file is new or has been changed but has not been added to the repository yet)
C - Conflict (There is a conflict in the file)
R - Renamed (The file has been renamed)
Рекомендации по теме
Комментарии
Автор

Needed to install Git from this link to make it work for me. Nothing was happening when I would click "Clone Git Project" in PlatformIO. This fixed my problem. Thanks for the awesome video!

lukes.
Автор

This was exactly the scope and type of explanation I was looking for. Thank you!

MrAtomicLlama
Автор

Thanks for the awesome tutorial.
For newbies like me, please also install GIT on your computer in order for this work.

Hienix
Автор

After a ton of searching around for videos and explanations that almost hit the mark..this was what finally broke through to my brain.
Thank you! Simple, concise, and exactly what I was looking for.

josef
Автор

Thanks for this video. I'm new to the whole world of So this whole video really helped me with the work (playing) that I'm doing. 👍

dafydds
Автор

Thanks for the tutorial! Super helpful.

sarahhall
Автор

Thanks for doing this ... you made it logical and easy

peterlaidlaw
Автор

GREAT! not to short and not to long. Just perfect explanation... Thanks! #ThumbsUp

kwissiekwissie
Автор

Perfect video for my needs, thank you very much

hunternelson
Автор

Thank you very much for half the information.

klaarnou
Автор

If an ESP32 dev board needs a button held down to start the upload, this might be fixed by putting a 2.2μF electrolytic between EN & GND pins. Worked for 2 different clone boards -- now upload starts immediately with no buttons needing to be pressed.

CraftyOldGit
Автор

Hello and thank you for an awesome and succinct tutorial - just what I needed (almost!)
I have platformio set up with existing projects - your example kind of started with a new repo and then creating a project within that repore, committing and pushing.
I tried creating a new repo and pointing it to my existing project and I just ended up with the repo name in my project at the same level as lib and source etc.
Do i now 'simply' move all the src/lib etc into that new folder (repo name) or will that break platformio's reference to my existing project?

scalesr
Автор

The only thing I can see that’s “missing” is the serial plotter but honestly I’ve never used it and there’s probably a plug in for that

AlwaysBolttheBird
Автор

I was hoping to find a video that shows how to take someone else's github project and bring it into PlatformIO on VS Code.
I don't want to have write permissions their code, just bring the code into a new project on my machine and make it read / write on my machine.
Any help with that?

jdholbrook
Автор

Can you include multiple projects into one git repo? For example I have ESP board 1, ESP board 2, arduino board 1 all with different code but all interact with each other. Can you combine that all in one git repo with platformio? Or is there another way of doing projects for each one?

chandlerbennett
Автор

Why is getting the blue bar with the checkmark at the bottom of VS code such a mystery to get? I have the PlatformIO downloaded but I can never compile. I had the blue bar once long ago but I dont remember how to get it back. I'm certain I cannot be the only one with this problem

jacobjohnson
Автор

Nice tutorial but one step is missing which is described in this video here:

spwim
Автор

You didn't compare your commits before committing them, which is a standard part of committing to Git. I was hoping you'd show that, because PlatformIO completely hijacks the Git compare in VS code and just shows you the PlatformIO GUI with no difference highlights, and I was looking for a way around that problem.

TreeLuvBurdpu