test public

Dependencies:   HttpServer_snapshot_mbed-os

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TouchKey_RSK_TFT.h Source File

TouchKey_RSK_TFT.h

Go to the documentation of this file.
00001 /* mbed Microcontroller Library
00002  * Copyright (C) 2016 Renesas Electronics Corporation. All rights reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 /**************************************************************************//**
00017 * @file          TouchKey_RSK_TFT.h
00018 * @brief         TouchKey_RSK_TFT API
00019 ******************************************************************************/
00020 
00021 #ifndef TOUCH_KEY_RSK_TFT_H
00022 #define TOUCH_KEY_RSK_TFT_H
00023 
00024 #include "TouchKey.h"
00025 
00026 /**
00027  * The class to acquire touch coordinates. (GR-PEACH 7.1inch LCD Shield edition)
00028  */
00029 class TouchKey_RSK_TFT : public TouchKey {
00030 
00031 public:
00032 
00033     /** Create a TouchKey_RSK_TFT object
00034      * 
00035      * @param sda I2C data line pin
00036      * @param scl I2C clock line pin
00037      * @param tprst tprst pin
00038      * @param tpint tpint pin
00039      */
00040     TouchKey_RSK_TFT(PinName tprst, PinName tpint, PinName sda = I2C_SDA, PinName scl = I2C_SCL);
00041 
00042     virtual int GetMaxTouchNum(void);
00043     virtual int GetCoordinates(int touch_buff_num, touch_pos_t * p_touch);
00044 
00045 private:
00046     I2C         i2c;
00047 };
00048 
00049 
00050 #endif