![](/media/cache/group/logo.001.png.50x50_q85.png)
51 52 with same code
Dependencies: CM3592
Fork of MtConnect04S_MtSense05 by
Diff: source/main.cpp
- Revision:
- 1:6881d24f8efe
- Parent:
- 0:6d6708b58601
--- 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;