A library for Freescale MCU which contain TSI peripheral, just for Kinetis L version. Because they use "lighter" version of TSI peripheral.

Dependents:   kl25z-tinyshell-demo tsi_slider_light_senso_LED frdm_tsi_slider_led_blend demo_slider ... more

This library is "fork" of the TSI library created by the mbed team.

Files at this revision

API Documentation at this revision

Comitter:
josephc3
Date:
Sun Jun 14 13:28:19 2015 +0000
Parent:
9:ef4781f21ea3
Commit message:
Made Change To tsi_sensor.cpp Line 108; Fix for get distance command - ; prevously ; uint32_t dist_pos0 = (perc_pos0 * _range) / 100;; uint32_t dist_pos1 = (perc_pos0 * _range) / 100;; prevented calculation of distance, changed to:

Changed in this revision

tsi_sensor.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ef4781f21ea3 -r 976904559b5c tsi_sensor.cpp
--- a/tsi_sensor.cpp	Fri Jun 12 19:26:51 2015 +0000
+++ b/tsi_sensor.cpp	Sun Jun 14 13:28:19 2015 +0000
@@ -105,7 +105,7 @@
             setSliderPercPosition(0, perc_pos0);
             setSliderPercPosition(1, perc_pos1);
             uint32_t dist_pos0 = (perc_pos0 * _range) / 100;
-            uint32_t dist_pos1 = (perc_pos0 * _range) / 100;
+            uint32_t dist_pos1 = (perc_pos1 * _range) / 100;
             setSliderDisPosition(0, dist_pos0);
             setSliderDisPosition(1, dist_pos1);