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:
- 1:b7c052bec578
- Parent:
- 0:d86587ed9b1c
diff -r d86587ed9b1c -r b7c052bec578 main.cpp
--- a/main.cpp Mon Jul 28 04:49:01 2014 +0000
+++ b/main.cpp Mon Aug 03 10:34:33 2015 +0000
@@ -8,8 +8,10 @@
float adc;
while (1){
+ adc=ain.read();
lcd.locate(0,0);
- lcd.printf("%8.3f \n", ain.read());
+ adc=adc*3.3*100;
+ lcd.printf("%8.1f \n", adc);
wait(0.05); // 20Hz update rate
}
}
\ No newline at end of file