Potentiometer_1

Dependencies:   mbed C12832

main.cpp

Committer:
jforde
Date:
2020-07-28
Revision:
0:8d90f885f449

File content as of revision 0:8d90f885f449:

#include "mbed.h"                         //Preprocessor Directives //
#include "C12832.h"

C12832 lcd(p5, p7, p6, p8, p11);             // Declarations //
AnalogIn pot1(p19);

int main()                                //instructions in main () function //
{
    while(1) {    
        lcd.locate (0,0);
        lcd.printf("Potentiometer Value %.2f", pot1.read()); //floating point print the first 2 digits after the point. 
        wait(0.01);
    }
}