A better way to import Arduino projects into VSC (Visual Studio Code) and PlatformIO .

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024
  • The pros and cons of using the 'Import Arduino Project' button.
    We show you why importing code manually is better.

Комментарии • 11

  • @RobRoyAus
    @RobRoyAus 2 года назад +5

    Thanks Richard. Simple post but exactly what I needed after way too much time searching.

  • @andrebalsa203
    @andrebalsa203 2 года назад +3

    Thank you! Excellent advice and much appreciated!

  • @richardlangner
    @richardlangner  6 месяцев назад

    Thanks for the feedback. I made the video to import whole projects, but VSC has changed and the video needs a remake. I have a couple of other short videos to make first. Subscribe and click on the bell so you don't miss them.

  • @ifzq0
    @ifzq0 Год назад +1

    Very cool!!!

  • @keldsor
    @keldsor 6 месяцев назад

    Nice little series of videos - thx a lot !
    Can you give a link to import whole Arduino projects - please ?

    • @richardlangner
      @richardlangner  6 месяцев назад

      Hi Keld, importing a full Arduino project is a bit more tricky. You have to ensure you gather all the dependencies in the right place. I may do a video about it later.

    • @keldsor
      @keldsor 6 месяцев назад

      @@richardlangner OK - I thought you said so in the video - TGX anyway !

  • @JannieH
    @JannieH 3 года назад +1

    Respectfully, but everybody shows you how to blink an LED. My problem is using vs code platformIO to upload a full an existing ***.ino , one with many sub files. say a project downloaded from the net?

    • @richardlangner
      @richardlangner  3 года назад +4

      Should be straight forward. Paste the .ino code into main.cpp as shown in the video. Copy the provided .h header files provided (and any others) into the 'includes' folder. Ensure your code knows where the other files are. Any libraries required may be installed by 'PIO Home' -> 'Libraries'. If you are still stuck, point me to the project and I will take a look. I hope that helps.

    • @svenscheil902
      @svenscheil902 9 месяцев назад +1

      @@richardlangner Sorry, it isn't as easy as you mention. It's a lot of work to migrate a complex project based on multiple ino-files: You have to extract "public" function headers/declarations into new header files, protect these headers from being included multiple times, include these new header-files where the functions are used, then you have to extract shared global variables and write a header file to declare them as external etc.

  • @wallacefreedom76
    @wallacefreedom76 6 месяцев назад

    Exactly what I was looking for, thank you!
    you mentioned at the end of the video that you would show us how to import entire projects into PlatformIO.
    I haven't done a deep search into your channel yet, but usually what happens is the RUclips algorithm will show that video, usually, as the top of the list of suggested videos. But I'm not seeing it.
    Just mentioning that in case there's a way on your end to help users find it - maybe some sort of keywords placed in the meta of the video to help find it....
    All said, thank you for this video! Great help!