Mario Poneder / TFT_TouchPanel
Revision:
1:007113101ef7
Parent:
0:e38c94c549f4
--- a/TouchPanel.h	Tue Jan 28 10:55:53 2014 +0000
+++ b/TouchPanel.h	Tue Jan 28 13:16:36 2014 +0000
@@ -1,17 +1,6 @@
-/***************************************************************************//**
- * @file   TouchPanel.h
- * @brief  Header of the touch panel driver for the
- *         TFT color display MI0283QT-9A (320x240).
- * @author Mario Poneder
- * @date   28/01/2013
-*******************************************************************************/
-
 #ifndef __TOUCHPANEL_H__
 #define __TOUCHPANEL_H__
 
-/******************************************************************************/
-/***************************** Include Files **********************************/
-/******************************************************************************/
 #include "mbed.h"
 #include "math.h"
 
@@ -41,13 +30,14 @@
 #define RIGHT               0.89f   // X coordinate
 
 /***************************************************************************//**
- * @brief Specifies the prototype of the touch callback function.
- *        Example: void TouchCallback(unsigned short x, unsigned short y);
+ * @brief  TouchPanel driver for the TFT color display MI0283QT-9A (320x240).
+ * @author Mario Poneder
+ * @date   28/01/2014
 *******************************************************************************/
-typedef void (*pTouchCallback_t)(unsigned short, unsigned short);
-
 class TouchPanel
 {
+    typedef void (*pTouchCallback_t)(unsigned short, unsigned short);
+
 private:
 
     PinName xPos;           // X+ pin
@@ -74,7 +64,7 @@
     void PollPanel(void);
 
 public:
-
+    
     TouchPanel(PinName xPos, PinName xNeg, PinName yPos, PinName yNeg);
     void SetTouchCallbackFunction(pTouchCallback_t touchCallbackFunction);
 };