aa

Dependencies:   mbed

Fork of VAT_LAB4_SERIALPOT by Anmol sardhalia

main.cpp

Committer:
anmolhardik
Date:
2017-02-09
Revision:
0:2d898afba864

File content as of revision 0:2d898afba864:

#include "mbed.h"
Serial pc (USBTX,USBRX);
AnalogIn pot(PTB0);
main()
{
    float value=0;
    while(1)
    {
        value=pot.read()*3.3;
        pc.printf("pot=%0.2f \n \r",value);
        
        wait(1.0);
    }
}