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: AM2321 LPS331_I2C mbed-rtos mbed EthernetInterface
Diff: main.cpp
- Revision:
- 0:29eeb8eaefee
- Child:
- 1:9755b5a98ffb
diff -r 000000000000 -r 29eeb8eaefee main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat May 24 14:52:01 2014 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+AnalogIn thermo_ic(p20);
+Serial pc(USBTX, USBRX);
+
+int main() {
+ while(1) {
+ //0.0V <= Vout <= 1.0V at 0C to 100C
+ float temperature = thermo_ic.read()*3.3*100;
+ pc.printf("temperature=%f\n", temperature);
+ wait(1);
+ }
+}