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:
2:b7074bcc2376
Parent:
0:9331e373c138
Child:
3:20ffa9b18488
--- a/tsi_sensor.h	Sat Feb 22 11:25:35 2014 +0000
+++ b/tsi_sensor.h	Sat Feb 22 15:42:11 2014 +0000
@@ -182,8 +182,8 @@
         _absolute_distance_pos = distance;
     }
 private:
-    TSIElectrode  _elec0;
-    TSIElectrode  _elec1;
+    TSIElectrode& _elec0;
+    TSIElectrode& _elec1;
     uint8_t       _scan_in_progress;
     TSIElectrode* _current_elec;
     uint8_t       _percentage_position[2];