export test

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by nikita teggi

Revision:
31:37d3ae1fa1eb
Parent:
29:7edc76b15e3d
--- a/touch_modules.cpp	Sat Jul 08 12:06:16 2017 +0000
+++ b/touch_modules.cpp	Fri Mar 02 13:56:33 2018 +0000
@@ -4,7 +4,7 @@
 #include "display_modules.h"
 #include "touch_modules.h"
 //InterruptIn Touch_D(PTD6);
-InterruptIn Touch_D(PTD2);
+InterruptIn Touch_D(PC_1);
 int i;
 unsigned int xt;
 unsigned int yt;
@@ -387,41 +387,43 @@
  
  int readTouchY(void)      // read the Y co-ordinate
 {      
-    DigitalOut YD(PTD2);
-     DigitalIn XL(PTC13);
-     DigitalOut YU(PTC0);
-     YU = 1;
-     YD = 0;
-     AnalogIn XR(PTB0);
-     XL.mode(PullNone);
-     return XR.read_u16();
+ //   DigitalOut YD(PTD2);
+ //    DigitalIn XL(PTC13);
+ //    DigitalOut YU(PTC0);
+ //    YU = 1;
+  //   YD = 0;
+ //    AnalogIn XR(PTB0);
+ //    XL.mode(PullNone);
+ //    return XR.read_u16();
+    return 0;
 }
     
     
 int readTouchX(void)    // // read the X co-ordinate
 {
-    DigitalOut XR(PTB0);
-    DigitalIn YD(PTD2);
-     DigitalOut XL(PTC13);
+ //   DigitalOut XR(PTB0);
+ //   DigitalIn YD(PTD2);
+  //   DigitalOut XL(PTC13);
      
-     XR = 1;
-     XL = 0;
-     AnalogIn YU(PTC0);
-     YD.mode(PullNone);
-     return YU.read_u16();
+ //    XR = 1;
+ //    XL = 0;
+  //   AnalogIn YU(PTC0);
+ //    YD.mode(PullNone);
+  //   return YU.read_u16();
+  return 0;
 }
 
 void EnableTouch(void)       // Enable touch 
 {
     
-    DigitalIn YD(PTD2);
-    DigitalOut XL(PTC13);
-    DigitalIn YU(PTC0);
-    DigitalIn XR(PTB0);
-     XL=0;
-      YD.mode(PullUp);
-     YU.mode(PullNone);
-     XR.mode(PullNone);
+ //   DigitalIn YD(PTD2);
+//    DigitalOut XL(PTC13);
+//    DigitalIn YU(PTC0);
+//    DigitalIn XR(PTB0);
+  //   XL=0;
+  //    YD.mode(PullUp);
+  //   YU.mode(PullNone);
+  //   XR.mode(PullNone);
     i=1;
     Touch_D.fall(&touch1);
     Touch_D.enable_irq();
@@ -432,10 +434,10 @@
 {
     Touch_D.disable_irq();
     i=0;
-    DigitalOut YD(PTD2);
-    DigitalOut XL(PTC13);
-    DigitalOut YU(PTC0);
-    DigitalOut XR(PTB0);
+//    DigitalOut YD(PTD2);
+//    DigitalOut XL(PTC13);
+//    DigitalOut YU(PTC0);
+ //   DigitalOut XR(PTB0);
     }