51 52 with same code

Dependencies:   CM3592

Fork of MtConnect04S_MtSense05 by MtM+

Files at this revision

API Documentation at this revision

Comitter:
johnathanlyu
Date:
Fri Apr 27 09:58:41 2018 +0000
Parent:
0:6d6708b58601
Commit message:
51 52 with same code

Changed in this revision

CM3592.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
diff -r 6d6708b58601 -r 6881d24f8efe CM3592.lib
--- a/CM3592.lib	Tue Jun 06 02:02:38 2017 +0000
+++ b/CM3592.lib	Fri Apr 27 09:58:41 2018 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MtM/code/CM3592/#a434d2ca0357
+https://developer.mbed.org/teams/MtM/code/CM3592/#8547ec72dba2
diff -r 6d6708b58601 -r 6881d24f8efe source/main.cpp
--- a/source/main.cpp	Tue Jun 06 02:02:38 2017 +0000
+++ b/source/main.cpp	Fri Apr 27 09:58:41 2018 +0000
@@ -21,12 +21,18 @@
 #include "EnvironmentalUVService.h"
 #include "CM3592.h"
 
+/* UART printf */
+#ifdef NRF52
+Serial pc(p20, p24);
+#else
 Serial pc(p5, p4);
+#endif
+
 I2C i2c(p3, p2);
 DigitalOut led1(p16, 1);
 CM3592 cm3592(i2c);
 
-const static char     DEVICE_NAME[] = "MtSense05 Test";
+const static char     DEVICE_NAME[] = "Mt5MtSense05";
 static const uint16_t uuid16_list[] = {GattService::UUID_BATTERY_SERVICE};
 
 static EnvironmentUVService *environmentUVServicePtr;