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

Dependencies:   TSI

Dependents:   CapacitiveTouchButton CapacitiveTouchButton

Committer:
virajjayaweera
Date:
Sat Jul 13 14:14:40 2013 +0000
Revision:
0:2afd6e977c5b
New library to convert  FRDM-KL25Z's  capacitive touch slider to 4 touch buttons

Who changed what in which revision?

UserRevisionLine numberNew contents of line
virajjayaweera 0:2afd6e977c5b 1 /* Authour: P. V. V. jayaweera
virajjayaweera 0:2afd6e977c5b 2 * July 13 2013
virajjayaweera 0:2afd6e977c5b 3
virajjayaweera 0:2afd6e977c5b 4
virajjayaweera 0:2afd6e977c5b 5 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
virajjayaweera 0:2afd6e977c5b 6 * and associated documentation files (the "Software"), to deal in the Software without
virajjayaweera 0:2afd6e977c5b 7 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
virajjayaweera 0:2afd6e977c5b 8 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
virajjayaweera 0:2afd6e977c5b 9 * Software is furnished to do so, subject to the following conditions:
virajjayaweera 0:2afd6e977c5b 10 *
virajjayaweera 0:2afd6e977c5b 11 * The above copyright notice and this permission notice shall be included in all copies or
virajjayaweera 0:2afd6e977c5b 12 * substantial portions of the Software.
virajjayaweera 0:2afd6e977c5b 13 *
virajjayaweera 0:2afd6e977c5b 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
virajjayaweera 0:2afd6e977c5b 15 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
virajjayaweera 0:2afd6e977c5b 16 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
virajjayaweera 0:2afd6e977c5b 17 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
virajjayaweera 0:2afd6e977c5b 18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
virajjayaweera 0:2afd6e977c5b 19 */
virajjayaweera 0:2afd6e977c5b 20
virajjayaweera 0:2afd6e977c5b 21
virajjayaweera 0:2afd6e977c5b 22 class TouchButton {
virajjayaweera 0:2afd6e977c5b 23 public:
virajjayaweera 0:2afd6e977c5b 24
virajjayaweera 0:2afd6e977c5b 25 /** FRDM-KL25Z touch slider is divided in to 4 parts (assuming 1cm by 1cm buttons)
virajjayaweera 0:2afd6e977c5b 26 * Read the pressed button number
virajjayaweera 0:2afd6e977c5b 27 *
virajjayaweera 0:2afd6e977c5b 28 */
virajjayaweera 0:2afd6e977c5b 29 int PresedButton(void);
virajjayaweera 0:2afd6e977c5b 30
virajjayaweera 0:2afd6e977c5b 31
virajjayaweera 0:2afd6e977c5b 32 };