Biswajit Padhi
/
Potentiometer
poiuyrtyuioiuytd
main.cpp
- Committer:
- biswajit007
- Date:
- 2018-06-15
- Revision:
- 0:b22aeee85daa
File content as of revision 0:b22aeee85daa:
#include "mbed.h" DigitalOut myled(LED1); AnalogIn Pot(A0); Serial pc(USBTX,USBRX); int main() { while(1) { float pot = Pot.read(); pc.printf("The value of sensor is: %f\n", pot*1000); } }