-
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 8 and close any currently active projects.
-
Navigate to: Project --> Project Wizard... --> Next
-
Select the PIC your application will be using and click 'Next'.
-
Select the appropriate HI-TECH C compiler and click 'Next'.
-
Select the desired location for your project and click 'Next'.
HINT: Place your project in a sub-folder to keep the compiler-generated files from cluttering the project source directory.
-
In the left window, navigate to the mTouch library's source directory and add all the '.c' files to your project.
-
In the left window, navigate to your local application directory and add all source files to your project. Click 'next'.
-
Click 'Finish', wait for the project to be created, then navigate to Project --> Build Options... --> Project
-
Under the 'Directories' tab, select 'Include Search Path' in the drop down box.
-
Click 'New' and then the '...' button that appears in the list window.
Navigate to and select the framework's root source directory 'PIC16F CVD FW Library'.
-
Click 'New' 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.