Run a K30 CO2 sensor on a Nordic nRF52DK Board
Fork of mbed-os-example-ble-BatteryLevel by
Diff: source/main.cpp
- Revision:
- 62:e947447e0d8c
- Parent:
- 61:a5d14d0a94a1
--- a/source/main.cpp Tue May 01 17:45:11 2018 +0000 +++ b/source/main.cpp Tue May 01 17:51:51 2018 +0000 @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2014 ARM Limited + * Copyright (c) 2018 David G. Simmons * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,7 @@ DigitalOut led3(LED3); DigitalOut led4(LED4); //I2C i2c(p24 , p25); +// Standard I2C pins on the nRF52. But you can use any pins you want really. I2C i2c(p26, p27); /** If you want to debug, or see output, uncomment this **/ //Serial pc(USBTX, USBRX); // tx, rx