Do I need to use .ino files?

.INO files are not valid C / C++ files.

I think the documentation explains very well what you need to do. Please see Convert Arduino file to C++ manually — PlatformIO latest documentation

1 Like