Isme light band chalu hotai do setpoints ke aas paas, hysteris account me leke

Dependencies:   HysteresisIn mbed

Fork of Hysteresis by Eduvance SIT2017

Revision:
1:16341991cdfb
Parent:
0:5913813b85d9
--- a/main.cpp	Sun Jun 05 13:15:22 2016 +0000
+++ b/main.cpp	Wed Jun 29 06:38:55 2016 +0000
@@ -2,12 +2,12 @@
 #include "HysteresisIn.h"
 
 //analog pin, two thresholds and initial state 
-HysteresisIn hy(PTB0, 0.3, 0.7, 0); 
-DigitalOut led(PTA5);
+HysteresisIn    pot(PTB0, 0.3, 0.7, 0); 
+DigitalOut led(PTD1);
 
 int main() {
     while(1) {
-        led = hy.read(); //boolean value
+        led.write(pot.read()); //boolean value
         wait(1);
     
     }