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:
- chris
- Date:
- 2014-02-06
- Revision:
- 3:100dbea70564
- Parent:
- 2:989f84939300
- Child:
- 4:f0eb984c583d
File content as of revision 3:100dbea70564:
#include "mbed.h"
#include "C12832.h"
C12832_LCD lcd(D11, D13, D12, D7, D10);
AnalogIn pot1 (A0);
AnalogIn pot2 (A1);
int main()
{
while(1) {
lcd.cls();
lcd.locate(0,3);
lcd.printf("Pot 1 = %.2f", (float)pot1);
lcd.locate(0,14);
lcd.printf("Pot 2 = %.2f", (float)pot2);
wait(0.1);
}
}