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.
Dependencies: SB1602E SDFileSystem mbed
main.cpp
- Committer:
- mbed_Cookbook_SE
- Date:
- 2015-05-11
- Revision:
- 0:a84ca5aea16f
- Child:
- 1:758a4ce77b97
File content as of revision 0:a84ca5aea16f:
#include "mbed.h"
AnalogIn sensor(dp13);
Serial pc(USBTX, USBRX);
int main() {
while(1) {
float Temperature;
Temperature = (sensor * 3.3 - 0.6) / 0.01;
pc.printf("Temperature = %f\r\n",Temperature);
wait(1.0);
}
}