embedded system library for e-puck  1.0.1
A redesigned API library for the e-puck robot platform
 All Data Structures Files Functions Variables Enumerations Enumerator Modules Pages
New Project Setup


Create A New Project

  1. Click "File" -> "New Project". In the dialog poped, configure as the image below:
    doc_setup_01.png
  2. In "Select Device" step, set "Family" to "16-bit DSCs (dsPIC30)", "Device" to "dsPIC30F6014A".
  3. In "Select Tool" step, nothing need to be changed.
  4. In "Select Compiler" step, select "XC16".
  5. In "Select Project Name and Folder" step, choose the Folder to place the project.


Configure to Link The Library

  1. In the "Projects" tree view on the left side of the IDE, right click on the project just created and click "Set as Main Project". This guarantees the operations in the IDE will be applied to the project.
  2. Right click "Libraries" under the project's tree and then click "Add Library Object/File". Then, locate the "el.a" file.
  3. Right click the project in the tree view and then click "Properties". This opens the project properties window.
  4. In the project properties window, the configure as the following images:
    doc_setup_02.png
    doc_setup_03.png
    doc_setup_04.png
    doc_setup_05.png


Test Build

The "Hello World" program based on this library may be written as follow:

#include <el.h>
#include <elu.h>
int main(int argc,char*argv[]){
el_led_set(EL_LED_BODY,EL_ON);
elu_printf("Hello World!\n");
return 0;
}