This library allow you to convert FRDM-KL25Z built-in touch slider in to 4 touch buttons.

Dependencies:   TSI

Dependents:   CapacitiveTouchButton CapacitiveTouchButton

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TouchButton.h Source File

TouchButton.h

00001 /* Authour: P. V. V. jayaweera
00002  * July 13 2013
00003 
00004 
00005  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
00006  * and associated documentation files (the "Software"), to deal in the Software without
00007  * restriction, including without limitation the rights to use, copy, modify, merge, publish,
00008  * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
00009  * Software is furnished to do so, subject to the following conditions:
00010  *
00011  * The above copyright notice and this permission notice shall be included in all copies or
00012  * substantial portions of the Software.
00013  *
00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
00015  * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00016  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00017  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00018  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00019  */
00020 
00021 
00022 class TouchButton {
00023 public:
00024     
00025     /** FRDM-KL25Z touch slider is divided in to 4 parts (assuming 1cm by 1cm buttons)
00026      * Read the pressed button number
00027      *
00028      */ 
00029    int PresedButton(void);
00030 
00031   
00032 };