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:
- 47:3146e8c949a9
- Parent:
- 46:af5f2d7c158c
- Child:
- 48:b8cbef6aaed2
diff -r af5f2d7c158c -r 3146e8c949a9 main.cpp --- a/main.cpp Sat Jun 13 23:16:47 2015 +0000 +++ b/main.cpp Sat Jun 13 23:45:35 2015 +0000 @@ -61,7 +61,7 @@ float massflowSet; float deltaVflow = 0.0; float deltaMflow = 0.0; -float gainFlow = 100; +float gainFlow; uint8_t digital_pot_setpoint; //min = 0x7F, max = 0x00 uint8_t digital_pot_set; @@ -87,6 +87,14 @@ int main() { + + if(volflowSet==1.0){ + gainFlow = 100;} + else if(volflowSet==2.0){ + gainFlow = 25;} + else{ + gainFlow = 25;} + RGB_LED.set_led(1,0,0); press = bmesensor.getPressure(); temp = bmesensor.getTemperature();