Skip to content

Generate a New Project

luni64 edited this page Mar 22, 2020 · 2 revisions

The easiest way to generate a new project is to simply open an empty folder with VisualTeensy. (For details, have a look at the Quick Start Guide and the corresponding video). If you save the project, VisualTeensy will generate the following folders and files in the project directory:

 Test
 ├── makefile
 ├── src
 │   └── main.cpp
 ├── lib
 ├── .vscode
 │   ├── c_cpp_properties.json
 │   └── tasks.json
 └── .vsteensy
     ├── build
     └── vsteensy.json

Generated files and folders:

  • The src folder is the root folder for your source files. All *.c, *.cpp abd *.S files in this folder and its subfolders will be compiled and linked by the build system.
  • main.cpp: This file will be auto generated and contains some example code blinking the built in LED. It is safe to place your code in this file, VisualTeensy will not overwrite it.
  • The lib folder contains all project libraries you added in VisualTeensy. Shared libraries will not be copied to this folder.
  • The c_cpp_properties.json contains settings for the intellisense engine. This file will be regenerated every time you update your project with VisualTeensy.
  • tasks.json defines the entries in the build menu and the corresponding task.s This file will be regenerated every time you update your project with VisualTeensy.
  • vsteensy keeps the settings done in VisualTeensy.
  • The makefile is, well, the makefile.
  • The build folder will contain the generated output files (*.hex, *.elf, *.lst) and the intermediate object files.