Example program for LPC General Purpose Shield using the Potentiometer

Dependencies:   mbed

main.cpp

Committer:
MACRUM
Date:
2015-07-27
Revision:
0:e12ae8f22278

File content as of revision 0:e12ae8f22278:

#include "mbed.h"

Serial pc(USBTX, USBRX);

AnalogIn pot(A3);

int main()
{
    while(1) {
        pc.printf("Potentiometer = %.2f\n", (float)pot);
        wait(0.3);
    }
}