KL25Z TSI library

Dependents:   AccelerometerLedTsiDemo NRF24L01_sender TouchButton Wi-Go_IOT_Demo ... more

Fork of TSI by Emilio Monti

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Revision:
0:afbd8e2c8bc0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TSI_Sensor.h	Thu Oct 11 11:04:30 2012 +0000
@@ -0,0 +1,33 @@
+#ifndef TSI_SENSOR_H
+#define TSI_SENSOR_H
+
+
+//!Library for the TSI Touch sensor available on the KL25Z board
+class TSI_Sensor {
+public:
+    //!Creates an instance of the class.
+    /*!
+        Initialize the TSI touch sensor
+     */
+    TSI_Sensor();
+
+    /*
+     * Get Touch Sensor percentage value
+     *
+     * \returns percentage value
+     */
+    uint32_t getPercentage();
+
+    /*
+     * Get Touch Sensor distance
+     *
+     * \returns distance value
+     */
+    uint32_t getDistance();
+
+private:
+    void SliderRead(void);
+    void self_calibration(void);
+};
+
+#endif