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

Dependencies:   SHT3XA mbed

Revision:
0:ec66ac9ea013
diff -r 000000000000 -r ec66ac9ea013 main.cpp
--- /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