Fork to update the library (team vs. user account)

Dependencies:   SHT3XA mbed

Files at this revision

API Documentation at this revision

Comitter:
ClosedCube
Date:
Sun Sep 13 21:16:57 2015 +0000
Child:
1:b4e81def6f93
Commit message:
ClosedCube SHT31A-PRO breakout module code example for SHT31-ARP-B Analog Humidity & Temperature Sensor

Changed in this revision

SHT3XA.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/SHT3XA.lib	Sun Sep 13 21:16:57 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/ClosedCube/code/SHT3XA/#f0757a25e239
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Sep 13 21:16:57 2015 +0000
@@ -0,0 +1,39 @@
+/*
+ SHT31-ARP-B Analog Humidity & Temperature Sensor Example Code 
+ ClosedCube SHT31A-PRO breakout module
+ 
+ License: This example code is in the public domain.
+ Date: 14-Sep-2015
+  
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
+ */
+
+#include "mbed.h"
+#include "SHT3XA.h"
+
+/*
+    Hardware connections:
+        VDD to 3.3V
+        RH to A0
+        T to A1
+        GND to GND   
+*/
+SHT3XA sht31a(A0,A1);
+
+Serial pc(USBTX, USBRX);
+ 
+int main() {  
+    pc.baud(115200);
+    pc.printf("ClosedCube SHT31A-PRO example"); 
+
+    while( true ) {
+        pc.printf("T: %3.2fC RH: %3.2f%%\n", sht31a.readTempC(), sht31a.readRH());        
+        wait(0.3f);
+    }
+    
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Sep 13 21:16:57 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/ba1f97679dad
\ No newline at end of file