Easy Migration from Arduino IDE to Platform IO Part 1 of 2

Sdílet
Vložit
  • čas přidán 17. 07. 2020
  • DEMO CODE and platformio.ini example at:
    technocoma.blogspot.com/p/blo...
    As I use more than one IDE for the development of code for the ESP32, I would like to demonstrate, alternatively the benefits of platform IO, as opposed to Arduino IDE, if you are a more seasoned developer who is looking for more features. One will find that the installation and time to get up and running is also significantly quicker by comparison. This is by no means an attack or slight on Arduino IDE, just an alternative. I still use Arduino IDE in many smaller projects and demos, but not for larger complex ones.
    The video goes into the specifics as to the ground up installation of platform IO and connected to the same TTGO T-display device as in the last project.
    For this specific demonstration, there will be no importation, I will be doing a cut and paste do demonstrate compatibility, showing all that is required to accomplish this task. Most of which should be obvious. One notable difference is the addition of Arduino.h in the include section which will be needed in platform.io.
    Another important file platformio.ini allows for a non centralized configuration per project , per device. This is different from Arduino's global based config. This is revisited as library configs and serial speed configs are demonstrated. Libraries are not installed per se, but compiled in on a per project basis. This file provides more value than this, also compile time options, which was useful for TFT_ESPI setting all display parameters within that file under build_flags.
    As we compile with no errors after our work we end up with the same output product on the device. I do however find a strange issue which ill get into in the follow on video before I expand on Platformio.
    #arduino #platformio #esp32
  • Věda a technologie

Komentáře • 45

  • @JuanoD_
    @JuanoD_ Před 3 lety

    This video was one of the best things that could happen to me at this moment of my life. Found it on reddit. Thank you very much.

  • @hyto
    @hyto Před 4 lety

    Great video, direct to the point and pure information.

    • @retrotechandelectronics
      @retrotechandelectronics  Před 4 lety +1

      Thanks. My intent was to keep the scope of the video at one task to demonstrate the migration without getting too deep, thats why I made it a two part series.

  • @ivankravets
    @ivankravets Před 4 lety +2

    Thanks for the amazing migration guide! Especially, for the solution with isolated project dependencies (lib_deps) and advanced features, such as custom build flags.

  • @davidmarks509
    @davidmarks509 Před rokem

    best guide I have seen with vscode and coming from Arduino IDE. TY

  • @IhorBats
    @IhorBats Před 3 lety

    Thanks for this video! The best intro to platformio.

  • @wholefoodrunner840
    @wholefoodrunner840 Před 3 lety

    Thank you for a very informative video I am looking forward to watching and learning more!

  • @carltone
    @carltone Před 3 lety

    Excellent explanation of the library installation requirements of Platformio. I didn’t realize that the libraries are installed per project, not globally. An important difference compared to the Arduino IDE.

    • @retrotechandelectronics
      @retrotechandelectronics  Před 3 lety +1

      It could be globally, but its not advisable. PlatformIO is much better suited to multiple projects and devices than arduino ide.

  • @nielspaulin2647
    @nielspaulin2647 Před rokem

    VERY INFORMATIVE, ... and time saving!

  • @davoodnasehi
    @davoodnasehi Před 3 lety

    Great one as a refresher

  • @shingabiss
    @shingabiss Před 9 měsíci

    Great tutorial, thanks!

  • @mickeygentry6033
    @mickeygentry6033 Před 7 měsíci

    Thank you! Very helpful

  • @norberthartmann5075
    @norberthartmann5075 Před 4 měsíci

    good job !!!

  • @user-uo8fx3nu2b
    @user-uo8fx3nu2b Před 7 měsíci

    Thanks for the video. When I try to copy and paste into the build_flags it doesn't change the values with -D. Is there something I missing?

  • @IanSHarrison
    @IanSHarrison Před 3 lety

    Great thanks but PlatformIO 5.1.1 has made some changes on the Libraries page, "Install..." button replaced with "Save to Project". Also cannot get the Libraries to load. Also Devices button missing. Will continue to investigate

  • @phionbinadi96
    @phionbinadi96 Před 3 lety

    thanks Dude

  • @jurajtrent5477
    @jurajtrent5477 Před 3 lety

    Hello. I get message: cannot open source file "pgmspace.h" (dependency of "TFT_eSPI.h") . Can I install library from github ?

  • @agnichatian
    @agnichatian Před 3 lety +1

    Nice work on this. I don't get why we must take an existing header and copy and re-format it's contents into another config file.

    • @retrotechandelectronics
      @retrotechandelectronics  Před 3 lety

      It was written as a framework for easy readability not efficiency. In the next video it’s explained how the config file changes catered to the specific application

  • @logicalstrike4772
    @logicalstrike4772 Před 6 měsíci

    Hi, a student here, what if we have an ESP32 board thats not a preconfigured board in PlatformIO? From a bit of research, it seems that we need to make custom board configuration profiles? Is that something you have done before and could point me in the right direction?

  • @mylanthony
    @mylanthony Před 2 lety +1

    It would be nice of you can add sections so people can skip more easily . ie installing usb drivers or install vscode

  • @mem5922
    @mem5922 Před 3 lety

    cool font on the display. Was it default?

  • @mrafayshams3089
    @mrafayshams3089 Před rokem

    What to do when the library you want is not available in the platformio library directory?

  • @nonaak
    @nonaak Před 3 lety

    i folow your video. but all libareries instal automatic i belive. is that new?

    • @retrotechandelectronics
      @retrotechandelectronics  Před 3 lety

      on platformio, no it must be added into libdeps to be built into the project as shown

  • @kamilpadula7152
    @kamilpadula7152 Před 2 lety

    this is not the way you should do this

  • @jstro-hobbytech
    @jstro-hobbytech Před 3 lety

    I appreciate your info but you definitely have an arrogance about you that seems to assume this info should be second nature to all developers, even the unseasonably who think the arduino ide is how a dev environment should look. I suspect you get alot of people who watch for 3 minutes then bounce because of the inflection you seem to convey. Maybe I'm wrong because I've been using visual studio for over a decade. We were all new at some point. Anyway if I'm wrong I apologize.