thermometer, hygrometer and barometer. Using VFD for display.

Dependencies:   AM2321 LPS331_I2C mbed-rtos mbed EthernetInterface

Files at this revision

API Documentation at this revision

Comitter:
mia_0032
Date:
Sat May 24 14:52:01 2014 +0000
Child:
1:9755b5a98ffb
Commit message:
Add thermometer feature.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat May 24 14:52:01 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877
\ No newline at end of file