Skip to content

Import an existing project

The manual procedure for importing an existing project into an emCode project consists on four steps:

For more information,

Create a new project

To create a new project,

Copy the headers and code files

  • Open the folder with the existing project and the folder with the new emCode project.

  • Select all the files from the exisiting project and copy them into the folder of the new emCode project.

Update the emCode project

On the new emCode project,

  • Open the main .ino sketch;

  • Ensure it includes the pre-processing statements #include "Arduino.h", as it is required by emCode.

For more information,

Then,

  • Open the main Makefile of the new emCode project;

  • Change the value of the PROJECT_NAME_AS_IDENTIFIER variable with the name of the main .ino sketch.

# C-compliant project name
PROJECT_NAME_AS_IDENTIFIER = MyProject
  • Add all the required libraries, APP_LIBS_LIST, USER_LIBS_LIST and LOCAL_LIBS_LIST.

For more information on libraries,

Check additional parameters

Depending on the project, some additional steps might be required.

  • If functions are called before they are defined, declare prototypes for them.

For more information on prototypes,

For more information about the compatibility between the standard Arduino IDE and emCode,