Contains the main execution of the clock uses headers to import functions

Dependencies:   RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor

Fork of TFT_Mikroelectronika_IL9341_sketchpad by Oxford CWM Team

Revision:
31:3255668e6b08
Parent:
11:1da15361a35b
--- a/slider.h	Thu May 25 13:24:26 2017 +0000
+++ b/slider.h	Thu May 25 15:32:20 2017 +0000
@@ -9,14 +9,16 @@
 #error TARGET NOT DEFINED
 #endif
 float tsi_current, tsi_last = 0;
-
+TSIAnalogSlider tsi(PTB16, PTB17, 40);
 float tsi_d()
 {
-    TSIAnalogSlider tsi(ELEC0, ELEC1, 40);
+    //wait(0.5);
     tsi_current = tsi.readPercentage();
     float delta = 0;
+    
     if (tsi_current != 0 && tsi_last != 0) delta = tsi_current - tsi_last;
     else delta = 0;
     tsi_last = tsi_current;
+    pc.printf("%f\n\r",tsi_current);
     return delta;
 }