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.
Revision 1:b7c052bec578, committed 2015-08-03
- Comitter:
- youhinclark
- Date:
- Mon Aug 03 10:34:33 2015 +0000
- Parent:
- 0:d86587ed9b1c
- Commit message:
- Temperature
Changed in this revision
| Analog_in_iia.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Analog_in_iia.lib Mon Aug 03 10:34:33 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/hasimo/code/Analog_in_iia/#d86587ed9b1c
--- 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