Priyanka Pashte
/
ESD_Project_USBMouse
USBMouse
Diff: TouchSensor/TouchSensor.h
- Revision:
- 0:e062501cfe81
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TouchSensor/TouchSensor.h Sun Dec 13 10:06:24 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +class TouchSensor { +public: + TouchSensor(); // Initialize Touch Sensor + float readPercentage(); // Read Touch values in terms of percentage + +private: + void sliderRead(void); + uint16_t readValue(uint8_t); + void selfCalibration(void); +}; +