We are actually going to publish a “Creating a New Project” wiki page next! That will go over the process for both creating a new project within the DaisyExamples hierarchy, as well as setting up a dedicated repository for a custom project. I expect that we’ll have the first version of this page up sometime in the next week or so.
In the meantime, I can briefly summarize the process.
You can certainly do this manually, but you will have to find the references to your source file (i.e. Blink.cpp
) within the JSON files in the .vscode/
folder, as well as the Makefile. (For users on Windows planning to use VisualStudio and the VisualGDB extension, they’d have to do this for the files in the vs/
folder as well.)
That said, DaisyExamples has a helper script written in python that can create new projects, or create copies of a project similar to what you want to create.
To create a new project:
python helper.py create seed/MyNewProject
Or to duplicate an existing one:
python helper.py --source seed/Blink copy seed/MyNewProject
For now the script assumes a folder structure that matches the DaisyExamples hierarchy, and has some issues if you try to use original name in the new name for a copied project (i.e. “Blink” and “NewBlink”).