-
Copy the mTouchCVD.h and mTouchCVD_Config.h files out of the framework's /includes directory and place them in a folder named 'includes' in the local application's directory.
-
Open MPLAB X and close any currently active projects.
-
Navigate to: File --> New Project... --> Microchip Embedded --> Standalone Project --> Next
-
Select the PIC your application will be using and click 'Next'.
-
Select the tool you will be using to program or debug this application and click 'Next'.
-
Select the appropriate HI-TECH C compiler and click 'Next'.
-
Select the desired name and location for your project and click 'Finish'.
-
In the Projects window, right click your project's Source Files folder and select 'New Logical Folder' and name it 'mTouch Framework Source'
Right click the new folder, select 'Add Existing Item...', navigate to the main framework source directory and select the files:
-
In the Projects window, right click your project's Source Files folder, select 'Add Existing Item...', navigate to your local application directory and add all source files to your project.
-
In the Projects window, right click your project's Header Files folder, select 'Add Existing Item...', navigate to your local application directory and add all header files to your project - including the two mTouch Framework header files in the /includes directory of your application.
-
Navigate to File --> Project Properties --> Compiler
Select 'Preprocessor' from the Option Categories drop down box.
Click the '...' button next to "Include Directories".
-
Click 'Create' and then 'Browse...'.
Navigate to and select the framework's root source directory 'PIC16F CVD FW Library'.
-
Click 'Create' and type '..' as the directory name.
NOTE: Make sure this entry is located above the framework directory. If not, use the 'up' button to reorder them.
Now check out the main_example.c file located in the framework's library folder or one of the main.c files in the mTouchCapDemos folder for suggestions on using the mTouch framework's API.