Touch panel library for GR-PEACH LCD Shield.

Dependents:   GR-PEACH_LCD_shield_touch_sample LCD_shield_config

Committer:
dkato
Date:
Tue Sep 27 12:36:07 2016 +0000
Revision:
1:538027089976
Add LCD type RSK TFT.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkato 1:538027089976 1 /* mbed Microcontroller Library
dkato 1:538027089976 2 * Copyright (C) 2016 Renesas Electronics Corporation. All rights reserved.
dkato 1:538027089976 3 *
dkato 1:538027089976 4 * Licensed under the Apache License, Version 2.0 (the "License");
dkato 1:538027089976 5 * you may not use this file except in compliance with the License.
dkato 1:538027089976 6 * You may obtain a copy of the License at
dkato 1:538027089976 7 *
dkato 1:538027089976 8 * http://www.apache.org/licenses/LICENSE-2.0
dkato 1:538027089976 9 *
dkato 1:538027089976 10 * Unless required by applicable law or agreed to in writing, software
dkato 1:538027089976 11 * distributed under the License is distributed on an "AS IS" BASIS,
dkato 1:538027089976 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dkato 1:538027089976 13 * See the License for the specific language governing permissions and
dkato 1:538027089976 14 * limitations under the License.
dkato 1:538027089976 15 */
dkato 1:538027089976 16 /**************************************************************************//**
dkato 1:538027089976 17 * @file TouchKey_RSK_TFT.h
dkato 1:538027089976 18 * @brief TouchKey_RSK_TFT API
dkato 1:538027089976 19 ******************************************************************************/
dkato 1:538027089976 20
dkato 1:538027089976 21 #ifndef TOUCH_KEY_RSK_TFT_H
dkato 1:538027089976 22 #define TOUCH_KEY_RSK_TFT_H
dkato 1:538027089976 23
dkato 1:538027089976 24 #include "TouchKey.h"
dkato 1:538027089976 25
dkato 1:538027089976 26 /**
dkato 1:538027089976 27 * The class to acquire touch coordinates. (GR-PEACH 7.1inch LCD Shield edition)
dkato 1:538027089976 28 */
dkato 1:538027089976 29 class TouchKey_RSK_TFT : public TouchKey {
dkato 1:538027089976 30
dkato 1:538027089976 31 public:
dkato 1:538027089976 32
dkato 1:538027089976 33 /** Create a TouchKey_RSK_TFT object
dkato 1:538027089976 34 *
dkato 1:538027089976 35 * @param sda I2C data line pin
dkato 1:538027089976 36 * @param scl I2C clock line pin
dkato 1:538027089976 37 * @param tprst tprst pin
dkato 1:538027089976 38 * @param tpint tpint pin
dkato 1:538027089976 39 */
dkato 1:538027089976 40 TouchKey_RSK_TFT(PinName tprst, PinName tpint, PinName sda = I2C_SDA, PinName scl = I2C_SCL);
dkato 1:538027089976 41
dkato 1:538027089976 42 virtual int GetMaxTouchNum(void);
dkato 1:538027089976 43 virtual int GetCoordinates(int touch_buff_num, touch_pos_t * p_touch);
dkato 1:538027089976 44
dkato 1:538027089976 45 private:
dkato 1:538027089976 46 I2C i2c;
dkato 1:538027089976 47 };
dkato 1:538027089976 48
dkato 1:538027089976 49
dkato 1:538027089976 50 #endif