Build .ino files into folder

It’s a question that no have answer into forums…

Into src, I created a folder and into I created a .ino files (Arduino).

Well, when y touch “Build”, the terminal says:

Processing uno (platform: atmelavr; board: uno; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
PLATFORM: Atmel AVR > Arduino Uno
SYSTEM: ATMEGA328P 16MHz RAM/2KB Flash/31.50KB
Library Dependency Finder (LDF) → Library Dependency Finder (LDF) — PlatformIO latest documentation
Collected 28 compatible libraries
Scanning dependencies…
No dependencies
Error: Nothing to build. Please put your source code files to ‘/Users/x/x/x/xFluvial/src’ folder
========================== [ERROR] Took 1.14 seconds ==========================

If I move the .ino out of folder, and put on “src” folder, Works great

Why the .ino can’t are in a folder?? It may seem stupid, but to work together with people who have IDE Ardunio is a big problem.

Can you solve it?

Many Thanks

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


The solution was on add:

src_dir = Blink

in the “platformio.ini”. The folder called “Blink” and into was Blink.ino

If you have 30 folders, add 30 lines with “src_dir = name of folder”. In this moment, platformio check and build the code in the folder