![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Isme light band chalu hotai do setpoints ke aas paas, hysteris account me leke
Dependencies: HysteresisIn mbed
Fork of Hysteresis by
main.cpp
- Committer:
- SIT2016
- Date:
- 2016-06-05
- Revision:
- 0:5913813b85d9
- Child:
- 1:16341991cdfb
File content as of revision 0:5913813b85d9:
#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); } }