How to set up a project that still compiles with Arduino IDE for other users?

Hi all,
I used PIO from the command line a while ago for an Arduino Due project. The project got quite big, but I was just using .ino files. This meant that users could build and upload the project using the Arduino IDE only if they wanted.

Now I would like to be able to use the full PIO IDE, taking advantage of the black magic probe, but still have the project in a form that anyone who uses the Arduino IDE can build and upload are normal. I was wondering how to go about doing that? Will I run into problems with intellisense using .ino files and stuff? All the examples I have found for PIO projects have a separate src/main.cpp file, which I am not sure how to use in the Arduino IDE.

Thanks for any advice you can offer!

See example platform-atmelavr/examples/arduino-own-src_dir at develop · platformio/platform-atmelavr · GitHub

1 Like