Day 2 start - Ek setpoint ke niche light off hotai, uske oopar on hotai
Dependencies: mbed
main.cpp
- Committer:
- akashlal
- Date:
- 2016-06-29
- Revision:
- 0:8ca79fc584a1
File content as of revision 0:8ca79fc584a1:
#include "mbed.h" AnalogIn pot(PTB0); DigitalOut led(PTB18); float value; int main() { while(1) { value=pot.read(); if(value<0.5) { led=1; } else { led=0; } } }