Using the PlatformIO Library Manager (ESP32 + Arduino series)

preview_player
Показать описание
Use PlatformIO's dependency manager to automatically install and update any Arduino library you want to use.

No need to code everything yourself because there are so many Arduino libraries available for various sensors and devices. LCD display? Temperature sensor? A library probably exists already!

⚡️Other videos in this series:

(Everything you need to know about programming the ESP32 by using the Arduino Framework)

🌍 Social

Рекомендации по теме
Комментарии
Автор

Thank you, thank you, thank you. Was getting a lot of trouble with the libraries and didn't realize I needed to compile it first. I thought it compiled automatically when you uploaded, but that was not the case when I compiled all the dependencies worked. Thanks again.

kesterbelgrove
Автор

Use PlatformIO's dependency manager to automatically install and update any Arduino library you want to use.

No need to code everything yourself because there are so many Arduino libraries available for various sensors and devices. LCD display? Temperature sensor? A library probably exists already!

jorgefossati
Автор

The install button doesn't install the library globally, it makes you select which project to install it on. So no need to write anything manually.
Also, you forgot to explain the difference between having the libraries at libdevs vs the src folder

alejandroperez
Автор

What about a .zip library I have already download in one directory ? How can I include it ?

pinox
Автор

Platform dependency shows @^ and @~ what does this mean?

steve
Автор

tbh, i try to work with plattformio for a few days now, and i can't get shit to work... i started working with the Arduino IDE a short time ago aswell, but the lack of "fancyness" led me to try other tools... trying to do even include something like a pubsubclient drives me crazy though, it is added in the llib_deps, exactly like the lib documentation tells me to, but plattformio throws an error, complaining the library was not installed. maybe someone on here can help me out, i really dont want to use the arduino IDE again, since i can see, and also wanna use the advantages of plattformio

I am not that experienced as a programmer, though i would guess the solution should not be too hard for me to understand if someone reads this and has the grace to explain it shortly :)

einmax
Автор

Hey, what version of vscode and platform io are you using ?
Thanks.
Marc.

MPElectronique
Автор

Why don't you want to add the library globally?

stage
Автор

Thanks for your useful video.

The first test works fine on my board if I choose the Arduino framework. However, if I choose Espressif IoT Development Framework, which is what I want to do for more customizability and less, well, Arduinoisms, the library can't be used - which is unsurprising, considering it was made for the Arduino framework all along. Does anyone have any idea how to proceed if I want to make it work for the Espressif IDF? Any tutorials that show how I would do such a thing? (The library in question is Adafruit DotStar, and I'd be very grateful for any help with that specific library, or more general ideas)

partialobject
Автор

Thanks for the video, found it after searching for library versioning. I do wonder, could you do another showing us how to do similar with libraries we have downloaded and are not available via PlatformIO (or at least searching for them in the library tab does not turn up the one we need). I ask because I would love to use PlatformIO (looks very well put together), but without knowing how to do this, I have always defaulted back to ArduinoIDE as soon as code shows those squiggly lines.
If you have, can you link too it? I'm about to look through your videos after I comment to see if you have, but, just I think a link would also be useful for others who found this as I did.

user
Автор

Your video are very informative. Can you plaese show us how to plot real time data from sensor on platformio.

mmchanel
Автор

Hello, Thanks for this great video, I'm having a problem that vscode doesnot install the dependcies library, and I hve to list them manually in ini file !, the library depencies are downloaded in the .pio/libdeps folder, but I'm getting error in compiling

AMoktar
Автор

Two things,

Why? Why do I need to "Use PlatformIO's dependency manager to automatically install and update any Arduino library you want to use." Can't PlatformIO just tell me that an installed library needs updating, like the Arduino IDE does, and offer to install ones I ask for that aren't already there? Makes the I in "Integrated Development Environment" look incorrect and silly.

And why am I going to be typing in the name of a library, with all the potential that for error that introduces? Can't I just click it, like the Arduino IDE? My memory is not what it was, I can't remember things the way I used to when I was 20.
And some libraries (TFT_eSPI springs to mind) erase any custom settings that you have changed, why would I want that updating automatically?

neilbarnett
Автор

im here because it dosnt work. manually installing it works. but the platformio way dosnt.

OutOfNameIdeas
Автор

It's a shame Microsoft forces you to use vscode instead of codium to use great extensions like this. Got to slam their greedy claws into anything good...

jahndo