Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017
Dependencies: ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822
Fork of UPAS_BLE_and_USB by
Diff: main.cpp
- Revision:
- 40:ef7e1dcb3780
- Parent:
- 38:e02e037132b4
- Child:
- 41:1fb3e0ac6f87
diff -r c0acc15ad460 -r ef7e1dcb3780 main.cpp --- a/main.cpp Fri Jun 05 20:22:36 2015 +0000 +++ b/main.cpp Tue Jun 09 16:48:47 2015 +0000 @@ -7,6 +7,7 @@ #include "LSM303.h" #include "BME280.h" #include "SI1145.h" +#include "NCP5623BMUTBG.h" #define SERIAL_BAUD_RATE 9600 #define SCL 20 @@ -23,6 +24,7 @@ DigitalOut pbKill(p18, 1); LSM303 movementsensor(p22, p20); SI1145 lightsensor(p22, p20); +NCP5623BMUTBG RGB_LED(p22, p20); float press; float temp; @@ -100,6 +102,7 @@ int main() { + RGB_LED.set_led(1,1,1); press = bmesensor.getPressure(); temp = bmesensor.getTemperature(); rh = bmesensor.getHumidity(); @@ -122,6 +125,7 @@ while(1){ + RGB_LED.set_led(0,1,0); get_time(); secondsD = Seconds;