52 51 with same code

Dependencies:   BMP280 MtSense01 SHT2X

Fork of MtConnect04S_MtSense01 by MtM+

Files at this revision

API Documentation at this revision

Comitter:
johnathanlyu
Date:
Fri Apr 27 09:45:55 2018 +0000
Parent:
4:0556535dbf82
Commit message:
initial commit

Changed in this revision

BMP280.lib Show annotated file Show diff for this revision Revisions of this file
MtSense01.lib Show annotated file Show diff for this revision Revisions of this file
SHT2X.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
source/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/BMP280.lib	Fri Jun 09 08:29:03 2017 +0000
+++ b/BMP280.lib	Fri Apr 27 09:45:55 2018 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MtM/code/BMP280/#c2987bafde6c
+https://developer.mbed.org/teams/MtM/code/BMP280/#9bb59e83df7a
--- a/MtSense01.lib	Fri Jun 09 08:29:03 2017 +0000
+++ b/MtSense01.lib	Fri Apr 27 09:45:55 2018 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MtM/code/MtSense01/#26745d857755
+https://developer.mbed.org/teams/MtM/code/MtSense01/#9a301d7b8f44
--- a/SHT2X.lib	Fri Jun 09 08:29:03 2017 +0000
+++ b/SHT2X.lib	Fri Apr 27 09:45:55 2018 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MtM/code/SHT2X/#f5f628a42ba8
+https://developer.mbed.org/teams/MtM/code/SHT2X/#f9e3348b41a2
--- a/mbed-os.lib	Fri Jun 09 08:29:03 2017 +0000
+++ b/mbed-os.lib	Fri Apr 27 09:45:55 2018 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#5fff7e1daeb395aa3d1ecf3f9ec3f4fead3de0c2
+https://github.com/ARMmbed/mbed-os/#16bac101a6b7b4724023dcf86ece1548e3a23cbf
--- a/source/main.cpp	Fri Jun 09 08:29:03 2017 +0000
+++ b/source/main.cpp	Fri Apr 27 09:45:55 2018 +0000
@@ -22,12 +22,17 @@
 #include "MtSense01.h"
 
 /* UART printf */
+#ifdef NRF52
+Serial pc(p20, p24);
+#else
 Serial pc(p5, p4);
+#endif
+
 I2C i2c(p3, p2);
 DigitalOut led1(p16, 1);
-MtSense01 mtsense1(i2c);
+MtSense01 mtsense1(i2c, pc);
 
-const static char     DEVICE_NAME[] = "MtConnect04S_EnvKit";
+const static char     DEVICE_NAME[] = "Mt5MtSense01";
 static const uint16_t uuid16_list[] = {0x1822, 0x181A};
 
 static EnvironmentalService *environmentalServicePtr;