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