Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 12:2ad10c36f820
- Parent:
- 7:188bf08cfb44
- Child:
- 13:0f663ca63342
--- a/main.cpp Sun Nov 10 05:41:40 2019 +0000 +++ b/main.cpp Mon Nov 11 17:38:48 2019 +0000 @@ -1,9 +1,7 @@ #include "mbed.h" -#include "BMP280.h" #include "LIS2DH.h" #include "MAX14720.h" #include "MAX30001.h" -#include "MAX30101.h" #include "MAX30205.h" #include "System.h" #include "USBSerial.h" @@ -63,8 +61,8 @@ USBSerial usbSerial(0x0b6a, 0x0100, 0x0001, false); // I2C Masters -I2C i2c1(I2C1_SDA, I2C1_SCL); // used by MAX30205, BMP280 -I2C i2c2(I2C2_SDA, I2C2_SCL); // used by MAX14720, MAX30101, LIS2DH +I2C i2c1(I2C1_SDA, I2C1_SCL); // used by MAX30205 +I2C i2c2(I2C2_SDA, I2C2_SCL); // used by MAX14720, LIS2DH // SPI Master 0 with SPI0_SS for use with MAX30001 SPI spi(SPI0_MOSI, SPI0_MISO, SPI0_SCK, SPI0_SS); @@ -72,16 +70,9 @@ // PMIC MAX14720 max14720(&i2c2, MAX14720_I2C_SLAVE_ADDR); -// Optical Oximeter -MAX30101 max30101(&i2c2, MAX30101_I2C_SLAVE_ADDR); -InterruptIn max30101_Interrupt(P4_0); - // Accelerometer LIS2DH lis2dh(&i2c2, LIS2DH_I2C_SLAVE_ADDR); InterruptIn lis2dh_Interrupt(P4_7); - -// Barometric Pressure Sensor -BMP280 bmp280_pres(&i2c1, BMP280_I2C_SLAVE_ADDR); // Top Temperature Sensor MAX30205 MAX30205_top(&i2c1, MAX30205_I2C_SLAVE_ADDR_TOP); @@ -108,10 +99,6 @@ uint16_t rawTemp_top, rawTemp_bottom; float celsius_top, celsius_bottom, fahrenheit_top, fahrenheit_bottom; -// Barometric sensor variables -char bmp280_rawData = 0; -float Temp_degC, Press_Pa, Press_Bar; - // Accelerometer sensor variables int16_t accel_value[3];