Divide code into several files

Hello guys, I was wondering how can I make my code cleaner by splitting it into several files, previously in arduino, I just created other bunch of “ino” files and the compiler just took everything and solve that, but now that I moved into platformio I guess it would be more a c++ approach

This is mainly discussed in these threads:

especially the first one is quite long and contains multiple references to other C++ tutorials.