52 51 with same code

Dependencies:   BMP280 MtSense01 SHT2X

Fork of MtConnect04S_MtSense01 by MtM+

Revision:
5:3eb7ff57d6f4
Parent:
4:0556535dbf82
--- 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;