PlatformIO: All you need to know in 10 Minutes!

  Рет қаралды 291,877

J's e-shack

J's e-shack

Жыл бұрын

Tired of the Arduino IDE? Looking for quick and easy to use alternatives for your embedded coding? Interested in some nice code highlighting, autocomplete, Intellisense and fully customizable overlays? Code for right about any board: Arduino, ESP32, STM32 and more! Migrate to PlatformIO today and start coding your projects with more joy and less BS!
➡️ platformio.ini variables: docs.platformio.org/en/latest...
➡️ PIO-Docs: docs.platformio.org/en/latest...
➡️ PIO-Forum: community.platformio.org/
🖥️ Debug your Arduino Uno or nano: • Debugging the Arduino ...

Пікірлер: 272
@jse-shack825
@jse-shack825 11 ай бұрын
Due to a recurring disliking for VSCode, here's a list of possible integrations of PIO. I also switched to VSCodium since then, which I can highly recommend. So now you can stop spamming "Micro$soft bad" under this video about PlatformIO, because it is completely unrelated to Micro$oft on its own, see below: VSCodium (VSCode minus Microsoft) Atom Cloud9 Codeanywhere Eclipse Che CLion CodeBlocks Eclipse Emacs NetBeans Qt Creator Sublime Text Vim Sourced from: platformio.org/install/integration Enjoy!
@Henry-sv3wv
@Henry-sv3wv 10 ай бұрын
Atom is end of life.
@PokettoMusic
@PokettoMusic 7 ай бұрын
vscode, atom, cloud9, codeanywhere,eclipse, clion, codeblocks, emacs,netbeans, qt creqtor, sublime, vim all are just terrible, unusable, impractical, electron based or use 10gb of ram for a hello world, all the positive things that platformio could bring to the table are negated by the awful choice of integrations
@user-pc5eb7gv4q
@user-pc5eb7gv4q 6 ай бұрын
vs code rules
@AleLondon
@AleLondon 6 ай бұрын
you are a star!
@jse-shack825
@jse-shack825 6 ай бұрын
@@PokettoMusic That's about every editor that is available, so I wonder what isn't terrible, unusable, impractical, electron based or RAM-hungry. Surely tools like vim, emacs and clion clearly stood the test of time in both a hobbyist and professional context. Oh and to add to that: the PIO core CLI makes all commands of PIO usually used in the UI available as command line tools, which means that you can write your code in nano or notepad and directly compile and upload from the terminal, no 3rd party editor involved.
@garywilliams4214
@garywilliams4214 Жыл бұрын
Thank you! I am an experienced developer on microprocessors but haven’t used vscode or platformio before. Usually when I try to learn something new, I have to sit through “what is binary”, and “why use a microprocessor”, etc., with about 2 minutes left over for the topic! Thanks for understanding that not everyone is a newbie and doesn’t need binary explained! It looks like your channel is new so I hope for more content like this. Subscribing…..NOW!
@DataBoy1957
@DataBoy1957 9 ай бұрын
Me2!
@paulfrost8952
@paulfrost8952 6 ай бұрын
@@DataBoy1957Me10😂
@Juan-dz9mw
@Juan-dz9mw 10 ай бұрын
I have to say that I loved your fast tutorial. I was overwhelmed by all the VScode buttons, windows, things opening and closing, files and folders, blablabla... and you solved it in 10 minutes. No waiting times for you writing down hello world code letter by letter, just focus on what is relevant for the topic. good job
@qcnck2776
@qcnck2776 Жыл бұрын
I have tied PlatformIO on and off for over a year, and I have to say it is a mixed bag. Its biggest advantage is that it allows each project to have specified versions of libraries; this is advantageous if you have an older project that will break if a newer version of a library is used with it. Otherwise, it adds it own quirks and moderate learning curve. There are subtle gotchas that someone else commented about.
@NithinJune
@NithinJune Жыл бұрын
i mean its indispensable for me because of the intellesense, autocomplete, linting, etc.
@maxmustermann2596
@maxmustermann2596 Жыл бұрын
@@NithinJune That's what drove me from the ArduinoIDE to this video. Apart from that, I was confused that the ArduinoIDE just tries to compile everything within that folder. It seems like they don't want somebody to program something, which is much bigger than a small program within one file. Doesn't PlatformIO even enable you to take more control about the Language standard you are actually using? I didn't find the gotchas, yet. Which one does qCNC K mean? Is there any danger, that code might not be compileable in the future?
@Henry-sv3wv
@Henry-sv3wv 10 ай бұрын
you can even set a dependency in lib_deps to be dependent on a specfic commit hash of a git repo if there aren't version tags for that lib i hate having to play the guessing game which libs and version a project needs so i wish everyone would use platformio because of dependency management. even more than autocomplete i use the code navigation to quick browse into the libs (control + click on function name) and like in a web browser i can click the side button on my mouse to go back feels more like linux where packages describe what exactly they depend on ...
@Aj0nJon
@Aj0nJon Жыл бұрын
I came here for the knowledge, stayed for pure content. Love your attitude man, hope to see more videos soon!
@Doerakker
@Doerakker Жыл бұрын
Oh man thank you ! Finally a video that explains what I didn't get before: being able to understand what to do within Visual Studio Code & platform IO
@barrykruyssen
@barrykruyssen Жыл бұрын
Great video. Finally, someone who realises we are not all new developers. I'll be watching a lot more of your videos. Thanks.
@edchen1240
@edchen1240 Жыл бұрын
Your clear explanation rescued me from days of frustration battling a persistent bug. While my Arduino functioned flawlessly when I utilized the Arduino IPA to upload the code, I encountered complete silence when attempting to do so through VSCode Platform IO. I discovered that the solution lied in crafting my own code within main.cpp rather than simply creating a folder with a name and a file with the name.ino extension. Your guidance was invaluable. Thank you!
@ShizzleMyChizzle
@ShizzleMyChizzle Жыл бұрын
Brilliantly jam packed video with golden information. Thanks my man!
@phantomhck
@phantomhck Жыл бұрын
The best thing that Arduino IDE has going is that the serial terminal is no nonsense and quick. PlatformIO takes longer to start and is a bit more difficult to use when using the terminal a lot during testing. It's nice to have it auto stop and restart between uploading.
@jse-shack825
@jse-shack825 Жыл бұрын
I do agree that PIO has a bottleneck at every uploading cycle. That becomes noticeable when you only make small changes and need to upload often within a short time. It starts to get annoying. However, i can't see how any developer would choose a fast serial terminal over code completion, multiple supported platforms, debugging compatibility and more.
@phantomhck
@phantomhck Жыл бұрын
@@jse-shack825 right? I use PIO exclusively now and keep an Arduino window open only for the terminal. Unfortunately, most lightweight terminal apps all send line after each character entry not when return is sent, so it's still the best option when in early development. The PIO library management is great and also got, being able to compile for multiple targets and upload with the hex that's for the right target is absolute gold
@VeritasEtAequitas
@VeritasEtAequitas Жыл бұрын
@@phantomhck realterm?
@jman4715
@jman4715 3 ай бұрын
To the point and delivered with dry humor and sarcasm. What more could a person want? Great job!
@walterpark8824
@walterpark8824 Ай бұрын
Well, I HAVE still been using the arduino IDE, but I got only a minute through your overview, and said, I need this! Great, short tell-it-all.
@johnswilley6764
@johnswilley6764 Жыл бұрын
Love it! And I subscribed. Best wishes, and thank you for expanding my tool kit.
@guitarman840
@guitarman840 6 ай бұрын
Thank you for the video - very well put-together!
@DadofScience
@DadofScience Жыл бұрын
Brilliant content. Helpfun and entertaining. Subscribed.
@No_Satisfaction1286
@No_Satisfaction1286 Жыл бұрын
thanks, all 10 minutes worth the time. even though i am new to this, i like it more if there is one video for one topic and not a huge explain-it-all.
@stupossibleify
@stupossibleify Жыл бұрын
Great video, but in the Arduino IDE I get great use out of the library examples accessible via the IDEs menu. Is that possible in PlatformIO?
@reloaderelectro
@reloaderelectro Жыл бұрын
Thanks a lot! This is the best guide!
@superdau
@superdau Жыл бұрын
I don't know how the Arduino "IDE" is nowadays (haven't used it in ages), but last time I did, calling itself an "IDE" was an insult to all actual IDEs.
@georgertheexplorer4114
@georgertheexplorer4114 Жыл бұрын
The most advanced feature it has today is code suggestion. It works about 1/4 of the time and is still technically an experimental feature.
@mdev790
@mdev790 Жыл бұрын
@@georgertheexplorer4114 isn't there arduino ide 2.0 based on vscode?
@AndersJackson
@AndersJackson Жыл бұрын
@@mdev790 hope not. VS code is shit.
@MahBor
@MahBor Жыл бұрын
The new 2.0 isn't half bad tbh. It has potential
@aarondcmedia9585
@aarondcmedia9585 Жыл бұрын
I used it years ago and then installed it to use it a few months ago and it had regressed. I am unsure how they managed that, but they did. I was mortified.
@dafiraone
@dafiraone Жыл бұрын
Nice tutorial Sir, hope we get more in-depth platformIO tutorial
@CameronChaney
@CameronChaney 7 ай бұрын
I'd love to see that video on unit testing! It seems like a super helpful tool, but is currently pretty confusing
@doctor567
@doctor567 Жыл бұрын
Excellent presentation. Thanks for cutting through the BS and delivering the facts clearly with examples. Refreshing to see something in this format, considering what tends to make up most of today's KZfaq environment
@barbara1943
@barbara1943 5 ай бұрын
I appreciate this vid -- "beginner moves on to intermediate." I'm an Arduino IDE user whose Mac dev machine crashed, giving me the "opportunity" to start fresh... I chose to use a Pi400 with a clean install of Bookworm, the Arduino IDE, and vscode, but I had only a vague idea (with advice from bard) that PlatformIO fit into the MCU picture. This vid was ideal, thank you.
@BekoPharm
@BekoPharm Жыл бұрын
Thank you so much to not go over flowers and bees when describing some extension and cutting right to the chase 👍
@naderhumood1199
@naderhumood1199 5 ай бұрын
This great job brother, Thank you very much indeed.
@johnknight7293
@johnknight7293 5 ай бұрын
Great video, wish I had found it ages ago!
@giannimariani9744
@giannimariani9744 Жыл бұрын
I tried the most recent Arduino ide a few days ago, it seems like a massive improvement on the original. Still vs is probably better, need to try platform io.
@buffplums
@buffplums 2 ай бұрын
Thank you very much for this. This has inspired me to switch to platformIO in studio code … thanks bud.
@EmbeddedHackster
@EmbeddedHackster Жыл бұрын
Have you been able to use the intellisense feature for the HAL? When I use it with STM32 cube framework, everything works, compiles, builds, etc, except accessing the HAL itself(header / source files). I've seen plenty of pp complaining already but no solution, so I wonder what was Hou experience with it. Thanks!
@theblobewab6844
@theblobewab6844 Жыл бұрын
Great vid, thanks
@igorhorev
@igorhorev Жыл бұрын
Brilliant! Thanks!
@RomPereira
@RomPereira Жыл бұрын
no bullshit direct honest video, no fancy dangy dingy shit. SUBSCRIBED!!!
@AndreSonsOfSamael
@AndreSonsOfSamael Жыл бұрын
I never comment on videos, but this was a great video. Thank you
@billybbob18
@billybbob18 2 ай бұрын
You should give the Arduino IDE a new look. It's now a full fledged development environment with a dark mode, syntax highlighting. More of the tools are easier to use and it's much faster than the old version. IDF is now fully supported.
@TrevorMakes
@TrevorMakes Жыл бұрын
The serial monitor is imo the best part of PlatformIO. It supports ANSI commands so you can do colors and move the cursor around. It's so much better than the garbage that came with Arduino IDE 1.
@gautombose4172
@gautombose4172 Жыл бұрын
Can you demonstrate RPI Pico development and debug using Platform IO ?
@carlosenriquesanchezmartin1668
@carlosenriquesanchezmartin1668 Жыл бұрын
Dudeee, your content is the shit! An instant subscriber.
@deterdamel7380
@deterdamel7380 Жыл бұрын
It should be pointed out, that platformio is not part of vscode. The vscode-platformio-extention make use of platformio and add a nice IDE integration.
@lmarqs
@lmarqs 5 ай бұрын
I just started programming Arduino and my favorite approach so far is make + arduino cli. As a 11y of experience in software engineering I don’t like being attached to any IDE (click, drag n drop)… I have my reasons… But I will take a look on platformio cli, seems interesting. Thank you.
@jse-shack825
@jse-shack825 5 ай бұрын
That's what I love about PIO, the core CLI basically lets you choose any editor, because editing and compiling/flashing/debugging are two entirely separate processes. The core CLI can even do wild stuff like remote flashing and unit testing, which requires a PIO account. Did that with a remote Raspberry Pi which had an ESP32 connected on-site, making me able to flash new firmware remotely, almost like OTA updates without the usual OTA stuff.
@kissingfrogs
@kissingfrogs Жыл бұрын
Excellent Video. Thanks for sharing. Where do we put libraries that will be used by many projects. Edit: I think I have it hand
@_M_a_r_t_i_n_M
@_M_a_r_t_i_n_M Жыл бұрын
For some reason Platform IO gives me a ton of headaches. It is wonderous when it is working, godlike when working seamlessly. But, maybe it is just settings on my computer. I spent a week reading internet searches, playing around with my Windows PATH. Installing two drivers. And I finally having it working okay again as of yesterday. But. during the six months after discovering PIO, I also found Visual Micro. Which is an extension for MS Visual Studio (NOT VS Code!). The only framework it uses as of now is Arduino. But it gives you all of the power of the Goliath of a program Visual Studio, and the ease of folder and file management. I need to say, with it being a paid software, and that I have a paid version, I am happy with it. But I have high hopes for the potential of Platform IO. And I will tame the beast and have it working seamlessly without interruptions sooner or later. Chasing bugs and conflicts or issues goes with the territory.
@GM-Parad0x
@GM-Parad0x Жыл бұрын
It's a great a software, but for beginners I thinks AIDE is better just because is more simple to use. Right?
@2iinfinite
@2iinfinite Жыл бұрын
As soon as you assumed I wasn't an idiot, I subscribed. Thank you!
@santory5788
@santory5788 5 ай бұрын
I used Platformio when I compile code for SKR 32 Bit Control Board with marlin firmware. Very useful..
@outerstring8747
@outerstring8747 Жыл бұрын
this is really great!! can you do full wireless network project with Arduino uno?
@massnap
@massnap Жыл бұрын
Wow, thanks!
@alanmainwaring1830
@alanmainwaring1830 Жыл бұрын
Gee you like complexity, IDE 's can be difficult to use like anything easy when you know how. I like the Arudino interface
@miszkolc6535
@miszkolc6535 Жыл бұрын
Could you please make a tutorial on splitting code in Platform IO? There is no good place to learn that. Everywhere I looked, they were saying that it's the same as in the normal CPP but I still can't do stuff like global variables and libraries. I would greatly appreciate a tutorial covering that topic.
@jse-shack825
@jse-shack825 Жыл бұрын
Congrats, you just predicted what the next video will be about.
@miszkolc6535
@miszkolc6535 Жыл бұрын
@@jse-shack825 oh I love it. I've spent like 6 hours researching this topic and still know nothing about it.
@Doerakker
@Doerakker Жыл бұрын
@@jse-shack825 any idea when you'll get.git.got around to it?
@akul24
@akul24 Жыл бұрын
Yes that would be great, I've spent hours trying to migrate my code from arduino ide to vs code but eventually gave up and now I'm still using arduino.
@joymakerRC
@joymakerRC Жыл бұрын
thanks bro , i subscribed.
@largerification
@largerification Жыл бұрын
So what, after obtaining GitHub, Microsoft wants to get ahold of the Arduino code too?
@bennguyen1313
@bennguyen1313 9 ай бұрын
What is the difference between PlatformIO extension and the EspressIF IDF extension? I want to use VS Code (instead of the EspressIF IDF environment), but when I install/configure the extension, it keeps looking for the IDF before installing the IDF! I tried installing IDF/Tools directly (esp-idf-tools-setup-online-2.20).. and compiling via the command prompt works fine (idf_py build), yet VS Code IDF extension still does not see it! Any plans to do debug using a JTAG programmer? I bought an FT2232HL device (ESP-Prog), pointed it to the WinUsb driver (via Zadig), but how does debugging work ? For example, does it automatically start OpenOCD and load the elf file onto the ESP32? And if you unplug/plug, does the last debug program run, or was the debugger running out of RAM?
@markharrington5826
@markharrington5826 5 ай бұрын
So can you set this up for pic micro or not as yet to be used pic kit 3 / 4
@MrDiederikDuck
@MrDiederikDuck Жыл бұрын
Adding mySql database connectivity to a project. PlatformIO started complaining over non compilable libraries. Loading the same project in Arduino IDE, compiling was no problem at all. So how's that for awkward.
@ekiskaliburnirvana9047
@ekiskaliburnirvana9047 6 ай бұрын
Arduino ide is straightforward
@jse-shack825
@jse-shack825 6 ай бұрын
It is, but I believe that everybody who is capable of programming a microcontroller reaches the limit of the Arduino IDE after about 3 projects with it. PIO is the next step on your embedded systems journey.
@conorstewart2214
@conorstewart2214 Жыл бұрын
What’s wrong with ESP-IDF? You don’t get access to everything using the arduino framework.
@alireza0994
@alireza0994 2 ай бұрын
thanks a lot♥♥
@sltechgalaxy1677
@sltechgalaxy1677 2 ай бұрын
thanks man
@josem.escrich2610
@josem.escrich2610 9 ай бұрын
what about Arduino bootloaders on Arduino cards, and AVR chips?, what if I need to use an Attiny85?
@maciejlegowicz5834
@maciejlegowicz5834 4 ай бұрын
Nice. Would you know how to change the font face in terminal? Cheers
@timmiyg5894
@timmiyg5894 10 ай бұрын
Very nice. i find VSCode better to use than Arduino IDE for my ESP32 development. I always thought the PlatformIO logo was of an ant head, not an alien?
@birdy8406
@birdy8406 Жыл бұрын
Just use the Arduino IDE 2.0
@DerMatheman
@DerMatheman 8 ай бұрын
it took over half an hour before i cancet it on my new pc is that still normal?
@arp_catchall
@arp_catchall Жыл бұрын
Two issues you have not mentioned when migrating from original IDE. The "porting" of existing Arduino projects, where you have to move functions above 'loop' and some/old libraries incompatibilities (Newhaven lcd comes to mind). I use vscode with Arduino plugin. Better than original Arduino ide but no issues like with pIO.
@nabeelsherazi8860
@nabeelsherazi8860 Жыл бұрын
re: moving functions -- that's just how real C++ programming works. In Arduino C++, the IDE "automagically" performs function hoisting for you, adding invisible forward declarations at the beginning of your file, which is not standard/real C++. To do this properly, you should have a header file with the declarations of your functions, which is what you need in PlatformIO. You can't really fault it for being more like a standard C++ compiler in that way.
@Henry-sv3wv
@Henry-sv3wv Жыл бұрын
platformIO better. cause can more. i can say: i want esp32 with arduino framework. and i can say: i want esp32 with the original sdk. i can say i want some stm32 contoller with arduino framework, or with MORE other SDK's and real time operating system frameworks they support with that board ... and i just need to write ONE ini file to automatic download and configure all that complicated toolchain stuff...
@nomadc4
@nomadc4 Жыл бұрын
@@Henry-sv3wv exactly, you automatically get OUTDATED, old libraries and toolchains, especially for the ESP8266, and probably for ESP32 also. If you want to do something, none of the official documentation will work, because platformio has outdated things.
@HabibHabibaj
@HabibHabibaj Жыл бұрын
I love PlatfomrIO and Pete Rock
@TuxWing
@TuxWing Жыл бұрын
I with they would offically support sublime text, I feel it is a much better and lighter editor than vscode.
@AndersJackson
@AndersJackson Жыл бұрын
They are Editor agnostik. Work with any Editor. Just depend on how much you need to do in a shell.
@alexchabanenko6347
@alexchabanenko6347 Жыл бұрын
thank you
@igort5418
@igort5418 Жыл бұрын
Wow so simple and fast, sarcasm.
@i_do_stuff
@i_do_stuff Жыл бұрын
thanks buddy
@hocinehadjadj7290
@hocinehadjadj7290 Жыл бұрын
thank"you
@Monkeyindatrees
@Monkeyindatrees 7 ай бұрын
just use arduino ide pro 2.0? yes it's sill under dev, but it does the job?
@zcustard
@zcustard 5 ай бұрын
But what's better than arduino ide?
@OkelloJhonz
@OkelloJhonz 4 ай бұрын
pretty cool
@billychampy316
@billychampy316 6 ай бұрын
I agree Sir!! Arduino is so slow too... VS Code can do anything with extensions. It can run many different platforms and environments. Good code/file: reader, editor, testing, debugging, creating, compiling, and burning program. And runs efficient and fast. Faster build and test than Arduino IDE. Although Arduino is a really good system, It feels like everything about Arduino is 8 bits. Even their app.
@jse-shack825
@jse-shack825 6 ай бұрын
If you are looking for speed, PIO is not the right choice, but a specific build chain for your target controller. This, as the name implies, comes at the cost of working for one controller family only. PIO is a good tool to stay flexible and multi-purpose, allowing you to run parts of your project in the context of VSCode rather than just embedded firmware, such as the preview of an embedded web server or code generating python scripts.
@FilmFactry
@FilmFactry Жыл бұрын
Earned my subscribe!
@sithumgimhan7650
@sithumgimhan7650 Күн бұрын
Can i use a git hub code originally made for arduino in esp 32 ?
@geoffreyjbrown
@geoffreyjbrown 6 ай бұрын
One thing I find very annoying when using the Mega2560 is that accessing flash above 64KB requires use of a 24 bit address to cater for the 256KB flash. In the standard Arduino IDE this is a cludgy solution requiring conversion to far addresses (from what are compiler known 16 bit addresses). Does platformIO, or any other compiler that you are aware of, deal with this in a more orthodox manner wherein full addresses can be specified on 2560. It would also mean that things like a 2D array of characters in flash would be possible. At the moment, in Arduino IDE, this cannot be done because all addresses are treated as is 16bit so a 2D array has address bits missing. The pgm_get_far_address that converts 16 bit to 24 bit (actually 32bit) appears to go behind the scenes and essentially ask the linker - hey where is this really as there are address bits missing. Painful. Geoffrey, NZ
@alphagame7585
@alphagame7585 Жыл бұрын
Im 1000 subscriber 🎉😄
@optimistprime21
@optimistprime21 5 ай бұрын
"absolute gigachad" got me unprepared
@theelmonk
@theelmonk 11 ай бұрын
I'm all for improvements over the arduino IDE. But why swap it for another crap one ? VSC is awful with it's hard-to-read text, split-pane view, and annoying memory of distant projects. I want to divide my screen up sensibly with overlapping, indefinitely-sized windows, readable text and projects that stay separate.
@joeking5211
@joeking5211 4 ай бұрын
If only i could give your comment a 1000 ticks I would. Yes what a joke VS**** is, if only PIO could be used with another IDE it could be superb.
@_M_a_r_t_i_n_M
@_M_a_r_t_i_n_M Жыл бұрын
This video earned my like and subscribe.
@KaloyanDobrev
@KaloyanDobrev 5 ай бұрын
How do you get the example projects from Arduino IDE to a PratformIO project. In the Arduino IDE all the code one needs is 2 clicks away. How do I get anything here?
@jse-shack825
@jse-shack825 5 ай бұрын
Click the PIO symbol on the left (if you're using VSCodium), click "Open" in the "Quick Access" menu and you will then see the main page of PlatformIO. Next to the logo, 4 buttons will appear: "New Project", "Import Arduino Project", "Open Project" and "Project Examples". Hope you can spare an extra click; I counted 3
@KaloyanDobrev
@KaloyanDobrev 5 ай бұрын
@@jse-shack825 Thanks a lot
@user-mt1zx4vz8w
@user-mt1zx4vz8w 4 ай бұрын
Can you generate for me code of trafic to communiacat at four way where by they are 4 esp and led green, yellow, led at four way one esp to act as master
@XyQrTw
@XyQrTw 4 ай бұрын
Good video, but I don't understand why you didn't think of swapping your "Visual Studio Code" for "VSCodium" ?!
@amelliamendel2227
@amelliamendel2227 Жыл бұрын
But without thousands of libraries how do you make anything work?
@JoopKomkommerShake
@JoopKomkommerShake Жыл бұрын
And now an project with more then 1 source file. It's in the arduino ide piece of cake, however in platformio a nightmare. Make a video on that.
@jse-shack825
@jse-shack825 Жыл бұрын
Quite the opposite of a nightmare: kzfaq.info/get/bejne/lZ5kpc6inseZmnk.html
@mariabastidas9214
@mariabastidas9214 8 ай бұрын
I have a problem with plataformio, after clean and build my project when I try to run it in the terminal it appears this message "main.cpp:1:10: fatal error: Arduino.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated." does anyone know how to solve this
@joeking5211
@joeking5211 4 ай бұрын
Have a look at my warnings re this sort of thing when using vs**** - @joeking5211
@danielvanmieghem1091
@danielvanmieghem1091 Жыл бұрын
SO basically yolu still manually write the CPP code for the Arduino and then uploadc it but you just add a lot of complexity to how it is configured and managed... Perhaps interesting if you work on multiple platforms, but if you're a Die Hard Arduino user, then this is overkill....
@Henry-sv3wv
@Henry-sv3wv Жыл бұрын
i feel blind without code navigation: kzfaq.info/get/bejne/g9uBoLCkrtatYGg.html
@soulrobotics
@soulrobotics Жыл бұрын
I still program in assembler. and yes!, my software is not portable anymore, but i can duplicate my ideas any time to spare memory. Why making a program wasting 2MB when can be done in 1KB. Lazy people waste more memory
@danielvanmieghem1091
@danielvanmieghem1091 Жыл бұрын
@@soulrobotics and the best part is .... his actual CODING is still done exactly in the sae way, he just adds wrappers and layers. You a re so RIGHT !
@ianbirkinhead4103
@ianbirkinhead4103 Жыл бұрын
It’s easy to be judgemental about Arduino IDE, but everybody starts off with basic readers that read like the cat sat on the mat, but nobody keeps reading at that level. Arduino IDE is a great start for those that are not Nerds
@seriouscat2231
@seriouscat2231 Жыл бұрын
So you're criticizing someone's assumed feelings about it?
@ianbirkinhead4103
@ianbirkinhead4103 Жыл бұрын
@@seriouscat2231 are you serious? I was just saying that his scathing attitude regarding Arduino IDE is out of line. This IDE has launched the skills and interest of many people, it is a solid reliable IDE. It is good that he has found a better way, but he obviously started with Arduino, and his new way is a step up from that, good for him
@seriouscat2231
@seriouscat2231 Жыл бұрын
@@ianbirkinhead4103, I think you should decide. Either you criticize some fact or you criticize a sentiment or an attitude. Two different things that should not be confused. I did a thing or two with Arduino IDE and felt immediately limited by it.
@picklerix6162
@picklerix6162 Жыл бұрын
I was a little surprised that my old boss insisted that I do all my code development using the Arduino software. I told him that Arduino is good for hobbyists but serious developers use other more capable software. Before I left, I was able to get my boss to finally dump the 8-bit Atmel microcontrollers for new projects and use cheaper 32-bit devices like the Pi Pico. Currently, I am using VS Code for building binaries and debug at my new job. So far, I have only played around with Platform IO a little bit.
@imlassuom
@imlassuom Жыл бұрын
Did it still not working in Linux free vscode ?!!!
@user-uh2lf1hn8d
@user-uh2lf1hn8d 3 ай бұрын
nice
@ozzymandius666
@ozzymandius666 5 ай бұрын
Can I look at the compiled binary with this? Say in hex?
@jse-shack825
@jse-shack825 5 ай бұрын
In every project, PIO will create a folder named ".pio" and after you build, inside ".pio" you will find a folder named like your project environment (the name listed in platformio.ini). There you can find your firmware.bin or .elf file. PlatformIO does not have a built-in hex viewer, but that's the advantage of VSCodium: you just get a hex viewer extension and you're ready to go
@ozzymandius666
@ozzymandius666 5 ай бұрын
@@jse-shack825 Excellent! Thank you.
@DoktorJeep
@DoktorJeep Жыл бұрын
(High pitched fake voice from way in the back): What about ATTiny?
@learningpurpose3350
@learningpurpose3350 6 ай бұрын
Can I use same procedure for linux ?
@jse-shack825
@jse-shack825 6 ай бұрын
Sure!
@markfenbers1329
@markfenbers1329 Жыл бұрын
But I have a Mac, not a PC! So, what are my options on a Mac platform?
@seriouscat2231
@seriouscat2231 Жыл бұрын
VSCode is downloadable for a Mac, and PlatformIO is advertised as both Intel Mac and Apple Silicon compatible.
@redikaak9986
@redikaak9986 4 ай бұрын
Turbo pascal is joinning the chat..
@utube521
@utube521 4 ай бұрын
arch linux, vscode doesn't show platformio
@JustinEltoft
@JustinEltoft 5 ай бұрын
Why not just use the CLI interface at the command line of your terminal?
@jse-shack825
@jse-shack825 5 ай бұрын
PIO core CLI makes you able to compile and run your code from any terminal. If you dislike its or its editor's UI then you can completely bypass it that way.
@marcinlojowski7356
@marcinlojowski7356 Жыл бұрын
What about git support?
@Henry-sv3wv
@Henry-sv3wv Жыл бұрын
yes: kzfaq.info/get/bejne/q5-KhNN8rLrTl2g.html
@Wil_Bloodworth
@Wil_Bloodworth 3 ай бұрын
Excellent video overall! Thank you. The "Test" icon is not specifically for TDD (Test Driven Development) which is a software development "philosophy" of writing unit tests before you write any actual code. The Tests button is just a shortcut to the area where you create/store unit tests... which should never be confused with TDD. One is a philosophy, the other is simply unit tests. You can write unit tests all day long without adopting TDD. It's fine... you skipped over all the testing areas because you don't know anything about it and that's perfectly fine... no one "young" ever wants to write tests. Also, git is not an "archiving" system. It is a distributed version control system. Before everyone accuses me of just being a dick... which is exactly how I know the above will be received, know that I mean it in a constructive way. The only reason I mention it is because I know you will do well in both software and KZfaq and will end up with many followers. Those YT followers will listen to everything you say and take it for fact without question... and possibly learn some things that may not be 100% correct. Were you wrong per se... eh, not really. What I'm saying, or asking rather, is that as an influencer you make sure to use the correct terminology... or at least as close as possible so people don't have to unlearn the stuff later. Like I said at the top, excellent video! And yes, the Arduino IDE blows and VSCode is a much better solution. Subscribed.
Getting Started with PlatformIO
51:54
DroneBot Workshop
Рет қаралды 607 М.
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Рет қаралды 338 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 25 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 76 МЛН
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 6 МЛН
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 469 М.
PlatformIO - A True Alternative to the Arduino, MBED, and STM32 IDEs
16:10
Rust on ESP32 - Getting started
14:09
Floodplain: Streaming, Rust and Embedded
Рет қаралды 19 М.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Рет қаралды 317 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Optimizing Arduino Code: no setup(), no loop() ⛔
9:27
Wokwi
Рет қаралды 195 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 544 М.
PlatformIO или прощай, Arduino IDE
35:23
Alex Morozov
Рет қаралды 156 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 378 М.
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 34 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН