Using external libraries with PlatformIO and Arduino

  Рет қаралды 3,545

Uwe Zimmermann

Uwe Zimmermann

2 жыл бұрын

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
circuit boards made by www.pcbgogo.com/
- 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:
KiCAD PCB layout www.kicad.org/
QCAD general 2D design www.qcad.org/en/
VS Code code.visualstudio.com/
PlatformIO plugin platformio.org/
FastLED fastled.io

Пікірлер: 7
@7alfatech860
@7alfatech860 2 жыл бұрын
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😁
@uwezimmermann5427
@uwezimmermann5427 2 жыл бұрын
The name of a header file is arbitrary since you can make up your own libraries with random names which might be identical to other libraries on the net or in the known repositories. Also libraries in the repositories change over time, sometimes becoming incompatible to earlier versions. How should PlatformIO know which particular vintage version of library your project needs? I pretty much prefer that PlatformIO keeps the current version of the library in a local copy within your project tree, actually keeping track for you of available updates when a library comes from a standard repository - but letting you decide whether to update or not.
@7alfatech860
@7alfatech860 2 жыл бұрын
@@uwezimmermann5427 Thanks for the reply👍
@doquockhoa
@doquockhoa Жыл бұрын
Can you make video about I2c protocol. I see a lot of video but I not understand? Thank you very much
@uwezimmermann5427
@uwezimmermann5427 Жыл бұрын
What don't you understand and to which level of detail do you want to understand the I2C bus? I would recommend to read some documentation rather than relying on a youtube video. NXP - or rather former Philips - is the inventor of I2C and they have the standard document: www.nxp.com/docs/en/user-guide/UM10204.pdf
@Patten42
@Patten42 10 ай бұрын
@@uwezimmermann5427 You are great at explaining and I am interested too. Like a typical circuit with data input from a sensor and output on a LCD or something while using a MC as 328p and coded in AVR-C?
@uwezimmermann5427
@uwezimmermann5427 10 ай бұрын
@@Patten42 I am currently a bit overloaded with work, hence the lack of any new videos... but... and with soon 1000 subscribers...
ATmega328 and PlatformIO - no Arduino!
16:21
Uwe Zimmermann
Рет қаралды 11 М.
Using Git with VS Code and PlatformIO
14:17
Gavin T
Рет қаралды 16 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 9 МЛН
КОМПОТ В СОЛО
00:16
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 31 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 63 МЛН
PlatformIO - A True Alternative to the Arduino, MBED, and STM32 IDEs
16:10
Easy Migration from Arduino IDE to Platform IO Part 1 of 2
14:28
Retro Tech & Electronics
Рет қаралды 27 М.
HYDRAULIC PRESS VS ARMOR, USA AND RUSSIA
10:16
Crazy Hydraulic Press
Рет қаралды 326 М.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Рет қаралды 298 М.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Рет қаралды 299 М.
Getting Started with PlatformIO
51:54
DroneBot Workshop
Рет қаралды 612 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,9 МЛН
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 26 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 4,6 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН