Using external libraries with PlatformIO and Arduino

preview_player
Показать описание
One of the few comments under aprevious video asked for an explanation on how to use an external library in an Arduino-project under PlatformIO. Here I show the example of the FastLED library to control neopixel LED-chips.

This video is unsponsored and not monetized, as usual.

00:35 looking at the circuit boards
01:10 the layout in KiCAD
02:40 soldering connection pins
04:00 connecting the board to an Arduino
04:35 creating a new project in PlatformIO
06:00 picking a library within PlatformIO
10:18 success: a blinking LED

- 1.0 mm thick
- green solder mask, white silkscreen
- lead-free HASL
- castellated edge-contacts

other tools used:
TS-100 solder iron
Felder Iso-Core Clean Sn100Ni+ solder wire 0.5 mm
Arduino nano (clone), ATmega328 16 MHz, 5V

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

I do like that platformIO allows you to add the library after you've already started the project. I usually add them right at the start when I know which ones I'll be using.
But I would find it annoying that it will not add the header file into main.cpp when I specifically added the library to that specific project. Also, if you copy and paste a file developed elsewhere into platformIO, with the header files, it just throws its hands up and complains. And yet it is smart enough to find libraries for you and you can even give it a url. I think that if you put a specific header file in main, it should at least offer to find and install that library. I go back and forth with platformIO and just Notepad++ and ye olde Arduino😁

alfatech
Автор

Can you make video about I2c protocol. I see a lot of video but I not understand? Thank you very much

doquockhoa