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:
- 0:b0899ab92673
- Child:
- 1:a9c3fbd4685f
diff -r 000000000000 -r b0899ab92673 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 29 04:15:42 2014 +0000 @@ -0,0 +1,17 @@ +#include"mbed.h" +Serial pc(USBTX,USBRX); + +AnalogIn Temp(p15); + +int main() { +while(1) +{ + float temperature=((Temp.read()*3300-2597)/(-13.6)); + + pc.printf("%f\n",temperature); + + wait(1.0); +} + +return 0; +} \ No newline at end of file