Isme serially plot hotai Pot ka int value with respect to time
Dependencies: mbed
main.cpp
- Committer:
- akashlal
- Date:
- 2016-07-01
- Revision:
- 0:deed3ba88ccb
File content as of revision 0:deed3ba88ccb:
#include "mbed.h" Serial pc(USBTX,USBRX); AnalogIn pot(PTB0); float valuef; int valuei; int main() { while(1) { valuef=pot.read(); valuei=valuef*3.3*1000; pc.printf("$%d;",valuei); pc.printf("\n \r"); } }