Fork of Kojto's library with bugfixes: * added PTC2/TSI0_CH15 pinmapping for KL25 and KL46 MCUs * Fixed readDistance() function

Fork of tsi_sensor by Martin Kojtal

Fork of Kojto's library with bugfixes

  • added PTC2/TSI0_CH15 pinmapping for KL25 and KL46 MCUs
  • Fixed readDistance() function
Revision:
5:14f1557e02a0
Parent:
4:f64097679f27
Child:
7:f4bb237d08ca
diff -r f64097679f27 -r 14f1557e02a0 tsi_sensor.h
--- a/tsi_sensor.h	Mon Aug 04 07:43:15 2014 +0000
+++ b/tsi_sensor.h	Tue Sep 09 19:38:11 2014 +0000
@@ -112,7 +112,7 @@
      * @throws compile-time error if target is not supported, or runtime error if pin does not match any channel.
      */
     static uint8_t getTSIChannel(PinName pin) {
-#if   defined (TARGET_KL25Z)        
+#if   defined (TARGET_KL25Z)|(TARGET_KL46Z)       
         switch(pin) {
             //these are 
             case PTA0: return 1;