hello

Dependencies:   Sht31 mbed

Files at this revision

API Documentation at this revision

Comitter:
GeofferyOmlette
Date:
Wed Jul 20 16:51:53 2016 +0000
Child:
1:683b53ff0239
Commit message:
hello

Changed in this revision

Sht31.lib Show annotated file Show diff for this revision Revisions of this file
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/Sht31.lib	Wed Jul 20 16:51:53 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/GeofferyOmlette/code/Sht31/#c90aa4f69539
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jul 20 16:51:53 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "Sht31/Sht31.h"
+
+Sht31 sht31(D14, D15);
+
+int main()
+{        
+    printf("Hello\r\n");
+    while (true) {
+        float t = sht31.readTemperature();
+        float h = sht31.readHumidity();
+        printf("Temperature [ %3.2f F ]\r\n", t);
+        printf("Humidity    [ %3.2f %% ]\r\n\n", h);        
+        wait(5);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jul 20 16:51:53 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7c328cabac7e
\ No newline at end of file