So I have a project developed back in 2018 using Sloeber but I cannot get it going on my new laptop and the old one is long gone...
So I asked here and was advised to switch to VS Code + PlatformIO instead.
So I am now moving the sources over into a new project (using the old files) in VSCode.
One item has popped up:
VsCode main file is main.cpp, but in Arduino projects it is Projectname.ino.
What is the proper way to handle this?
Rename the ino file to main.cpp or what?
I would copy the .ino file into main.cpp but you don't have to do that if you don't want to. If there is no main.cpp in the directory, but there is a .ino file, then PlatformIO will build the .ino file instead.
I think there's an "import ino file" or "create project from .ino file" choice or something like that which makes the project setup easier. Sorry, it's been a while since I've done it that way; I'd have to check on my laptop to see how I did it before.