Usage of Hysteresis library and sample code with LED.

Dependencies:   HysteresisIn mbed

Revision:
0:5913813b85d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 05 13:15:22 2016 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "HysteresisIn.h"
+
+//analog pin, two thresholds and initial state 
+HysteresisIn hy(PTB0, 0.3, 0.7, 0); 
+DigitalOut led(PTA5);
+
+int main() {
+    while(1) {
+        led = hy.read(); //boolean value
+        wait(1);
+    
+    }
+}
+