Paint for the FRDM-KL25Z

Dependencies:   mbed TFT_fonts SPI_TFT_ILI9341

Revision:
4:87b40e5986e7
Parent:
3:1396bac4ae71
Child:
5:80791250acb2
--- a/main.cpp	Thu Jan 10 01:14:40 2019 +0000
+++ b/main.cpp	Thu Jan 10 03:48:37 2019 +0000
@@ -72,7 +72,6 @@
 }
 
 int Read_Y(){
-    //AnalogIn   _xp(xp);
     AnalogIn   _xp(PTB3);
     AnalogIn   _xm(PTB1);
     DigitalOut _yp(PTB2);
@@ -144,11 +143,13 @@
     //PinName _yp, _ym, _xm, _xp;
     float z;
     
-    int y2 = Read_Y();
+    //int y2 = Read_Y();
     int x2 = Read_X();
     int z1 = Read_Z1();
     int z2 = Read_Z2();
     
+    //int y2 = tft.readTouch();
+    int y2 = tft.readTouch(PTB3, PTB1, PTB2, PTB0);
     //int y2 = tft.readTouch(_yp,_ym,_xp,_xm);
     /*int x2 = tft.readTouch(_xp,_xm,_yp,_ym);
     int y1 = tft.readTouch(_yp,_ym,_xm,_xp);