Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
}
}