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.
Diff: main.cpp
- Revision:
- 3:6854a442d2c6
- Parent:
- 2:6072f52037b0
--- a/main.cpp Sat Oct 16 12:01:38 2010 +0000
+++ b/main.cpp Sat Oct 16 12:42:51 2010 +0000
@@ -7,7 +7,13 @@
int main() {
//while(1) {
- lcd.printf("Percent is %.1f\n",100*ain.read());
- lcd.printf("Voltage is %.3f\n",3.3*ain.read());
+ lcd.cls();
+ lcd.locate(7, 0);
+ lcd.printf("Percent is");
+ lcd.locate(9, 1);
+ lcd.printf("%.3f\n",100*ain.read());
+
+ //lcd.printf("Percent is %.1f\n",100*ain.read());
+ //lcd.printf("Voltage is %.3f\n",3.3*ain.read());
}
//}
\ No newline at end of file