00001 /************************************************************************* 00002 * © 2012 Microchip Technology Inc. 00003 * 00004 * Project Name: mTouch Framework v2.1 00005 * FileName: mTouch_config_slider.h 00006 * Dependencies: 00007 * Processor: See documentation for supported PIC® microcontrollers 00008 * Compiler: HI-TECH Ver. 9.81 or later 00009 * IDE: MPLAB® IDE v8.50 (or later) or MPLAB® X 00010 * Hardware: 00011 * Company: 00012 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00013 * Description: mTouch Framework Configuration File 00014 * - See documentation for better explanations of all 00015 * configuration options. 00016 *************************************************************************/ 00017 /*********************************************************************** 00018 * MICROCHIP SOFTWARE NOTICE AND DISCLAIMER: You may use this software, and 00019 * any derivatives created by any person or entity by or on your behalf, 00020 * exclusively with Microchip's products in accordance with applicable 00021 * software license terms and conditions, a copy of which is provided for 00022 * your referencein accompanying documentation. Microchip and its licensors 00023 * retain all ownership and intellectual property rights in the 00024 * accompanying software and in all derivatives hereto. 00025 * 00026 * This software and any accompanying information is for suggestion only. 00027 * It does not modify Microchip's standard warranty for its products. You 00028 * agree that you are solely responsible for testing the software and 00029 * determining its suitability. Microchip has no obligation to modify, 00030 * test, certify, or support the software. 00031 * 00032 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER 00033 * EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED 00034 * WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A 00035 * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE, ITS INTERACTION WITH 00036 * MICROCHIP'S PRODUCTS, COMBINATION WITH ANY OTHER PRODUCTS, OR USE IN ANY 00037 * APPLICATION. 00038 * 00039 * IN NO EVENT, WILL MICROCHIP BE LIABLE, WHETHER IN CONTRACT, WARRANTY, 00040 * TORT (INCLUDING NEGLIGENCE OR BREACH OF STATUTORY DUTY), STRICT 00041 * LIABILITY, INDEMNITY, CONTRIBUTION, OR OTHERWISE, FOR ANY INDIRECT, 00042 * SPECIAL, PUNITIVE, EXEMPLARY, INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, 00043 * FOR COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, 00044 * HOWSOEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY 00045 * OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWABLE BY LAW, 00046 * MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THIS 00047 * SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID 00048 * DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. 00049 * 00050 * MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF 00051 * THESE TERMS. 00052 *************************************************************************/ 00057 //**************************************************************************************************** 00058 // ____ _ _ _ ____ _ 00059 // / ___|| (_) __| | ___ _ __ / ___| ___| |_ _ _ _ __ 00060 // \___ \| | |/ _` |/ _ \ '__| \___ \ / _ \ __| | | | '_ \ 00061 // ___) | | | (_| | __/ | ___) | __/ |_| |_| | |_) | 00062 // |____/|_|_|\__,_|\___|_| |____/ \___|\__|\__,_| .__/ 00063 // |_| 00064 //**************************************************************************************************** 00065 #define MTOUCH_NUMBER_OF_SLIDERS 0 // <-- Number of individual sliders to decode 00066 00067 #define MTOUCH_SLIDER_STEP_SIZE 10 // <-- Maximum change allowed during one slider calculation 00068 00069 #define MTOUCH_SLIDER_SCALING_ENABLED // <-- Scales the slider's output result to always fall 00070 // between 0 and 255. If this is turned off, the maximum 00071 // value will be: 255+256(MTOUCH_NUMBER_SLIDER#_SENSORS-2) 00072 // Enabling this increases the number of division 00073 // operations in the decoding algorithm by 1. 00074 00075 00076 00077 00078 // mTouch Slider0 Configuration 00079 //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 00080 #define MTOUCH_NUMBER_SLIDER0_SENSORS 2 // <-- Number of sensors that make up slider 0 00081 00082 #define MTOUCH_SLIDER0_SENSOR0 0 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 0 00083 #define MTOUCH_SLIDER0_SENSOR1 1 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 0 00084 #define MTOUCH_SLIDER0_SENSOR2 2 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 2 of slide 0 00085 #define MTOUCH_SLIDER0_SENSOR3 3 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 3 of slide 0 00086 00087 //#define MTOUCH_SLIDER0_WHEEL_ENABLE // <-- If defined, slider 0 will be decoded as a wheel 00088 00089 00090 00091 00092 // mTouch Slider1 Configuration 00093 //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 00094 #define MTOUCH_NUMBER_SLIDER1_SENSORS 2 // <-- Number of sensors that make up slider 1 00095 00096 #define MTOUCH_SLIDER1_SENSOR0 1 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 1 00097 #define MTOUCH_SLIDER1_SENSOR1 2 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 1 00098 00099 //#define MTOUCH_SLIDER1_WHEEL_ENABLE // <-- If defined, slider 1 will be decoded as a wheel 00100 00101 00102 00103 00104 // mTouch Slider2 Configuration 00105 //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 00106 #define MTOUCH_NUMBER_SLIDER2_SENSORS 2 // <-- Number of sensors that make up slider 2 00107 00108 #define MTOUCH_SLIDER2_SENSOR0 2 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 2 00109 #define MTOUCH_SLIDER2_SENSOR1 3 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 2 00110 00111 //#define MTOUCH_SLIDER2_WHEEL_ENABLE // <-- If defined, slider 2 will be decoded as a wheel 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 // EXAMPLE 7-SLIDER IMPLEMENTATION 00129 // 00130 // #define MTOUCH_NUMBER_OF_SLIDERS 7 // <-- Number of individual sliders to decode 00131 // #define MTOUCH_NUMBER_SLIDER0_SENSORS 2 // <-- Number of sensors that make up slider 0 00132 // #define MTOUCH_NUMBER_SLIDER1_SENSORS 2 // <-- Number of sensors that make up slider 1 00133 // #define MTOUCH_NUMBER_SLIDER2_SENSORS 2 // <-- Number of sensors that make up slider 2 00134 // #define MTOUCH_NUMBER_SLIDER3_SENSORS 2 // <-- Number of sensors that make up slider 3 00135 // #define MTOUCH_NUMBER_SLIDER4_SENSORS 2 // <-- Number of sensors that make up slider 4 00136 // #define MTOUCH_NUMBER_SLIDER5_SENSORS 5 // <-- Number of sensors that make up slider 4 00137 // #define MTOUCH_NUMBER_SLIDER6_SENSORS 5 // <-- Number of sensors that make up slider 4 00138 00139 // #define MTOUCH_SLIDER0_SENSOR0 4 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 0 00140 // #define MTOUCH_SLIDER0_SENSOR1 5 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 0 00141 00142 // #define MTOUCH_SLIDER1_SENSOR0 3 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 1 00143 // #define MTOUCH_SLIDER1_SENSOR1 6 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 1 00144 00145 // #define MTOUCH_SLIDER2_SENSOR0 2 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 2 00146 // #define MTOUCH_SLIDER2_SENSOR1 7 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 2 00147 00148 // #define MTOUCH_SLIDER3_SENSOR0 1 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 3 00149 // #define MTOUCH_SLIDER3_SENSOR1 8 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 3 00150 00151 // #define MTOUCH_SLIDER4_SENSOR0 0 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 4 00152 // #define MTOUCH_SLIDER4_SENSOR1 9 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 4 00153 00154 // #define MTOUCH_SLIDER5_SENSOR0 0 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 5 00155 // #define MTOUCH_SLIDER5_SENSOR1 1 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 5 00156 // #define MTOUCH_SLIDER5_SENSOR2 2 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 2 of slide 5 00157 // #define MTOUCH_SLIDER5_SENSOR3 3 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 3 of slide 5 00158 // #define MTOUCH_SLIDER5_SENSOR4 4 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 4 of slide 5 00159 00160 // #define MTOUCH_SLIDER6_SENSOR0 9 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 0 of slide 6 00161 // #define MTOUCH_SLIDER6_SENSOR1 8 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 1 of slide 6 00162 // #define MTOUCH_SLIDER6_SENSOR2 7 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 2 of slide 6 00163 // #define MTOUCH_SLIDER6_SENSOR3 6 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 3 of slide 6 00164 // #define MTOUCH_SLIDER6_SENSOR4 5 // <-- MTOUCH_SENSOR# of the pin to treat as sensor 4 of slide 6