AM2321 sample

Dependencies:   AM2321 AQM0802 mbed

See http://developer.mbed.org/users/yasuyuki/notebook/AM2321/

Files at this revision

API Documentation at this revision

Comitter:
yasuyuki
Date:
Fri Jul 10 15:09:55 2015 +0000
Parent:
0:45db9d35cbce
Commit message:
minus

Changed in this revision

AM2321.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
--- a/AM2321.lib	Wed Oct 08 02:51:23 2014 +0000
+++ b/AM2321.lib	Fri Jul 10 15:09:55 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/yasuyuki/code/AM2321/#3656aea4e6f6
+http://developer.mbed.org/users/yasuyuki/code/AM2321/#39f20504d5c5
--- a/main.cpp	Wed Oct 08 02:51:23 2014 +0000
+++ b/main.cpp	Fri Jul 10 15:09:55 2015 +0000
@@ -12,28 +12,15 @@
 #include "AQM0802.h"
 #include "AM2321.h"
 
-//#pragma O0
-//#pragma O1
-//#pragma O2    // default
-//#pragma O3
-//#pragma Otime
-//#pragma Ospace
-
-
 #if defined(TARGET_LPC1768)
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
 I2C i2c(p28,p27);
 #endif
 // for TG-LPC11U35-501
 #if defined(TARGET_LPC11U35_501)
-DigitalOut led1(P0_20);
-DigitalOut led2(P0_21);
 I2C i2c(P0_5,P0_4);
 #endif
 // for Nucleo
 #if defined(TARGET_NUCLEO_F401RE)
-DigitalOut led1(D13);
 I2C i2c(D14,D15);
 #endif
 
@@ -49,12 +36,12 @@
     while(1) {
 
         h = am2321.humidity();
-        sprintf(msg,"%4.1f%%",h/10.0);
+        sprintf(msg,"%4.1f%% ",h/10.0);
         lcd.locate(0,0);
         lcd.print(msg);
 
         t = am2321.temperature();
-        sprintf(msg,"%4.1fC",t/10.0);
+        sprintf(msg,"%4.1fC ",t/10.0);
         lcd.locate(0,1);
         lcd.print(msg);
 
--- a/mbed.bld	Wed Oct 08 02:51:23 2014 +0000
+++ b/mbed.bld	Fri Jul 10 15:09:55 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5
\ No newline at end of file