Example main.c host software for the Maxim Integrated MAX30205 Extremely Accurate High Precision Human Body Temperature Sensor. Code example uses the MAX32630FTHR.
Dependencies: MAX30205_Clinical_Temperature_Sensor max32630fthr USBDevice
Revision 2:9670fb20b9a2, committed 2019-04-17
- Comitter:
- phonemacro
- Date:
- Wed Apr 17 21:22:11 2019 +0000
- Parent:
- 1:d1f45a4ff640
- Commit message:
- updated comments
Changed in this revision
| MAX30205_Clinical_Temperature_Sensor.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX30205_Clinical_Temperature_Sensor.lib Mon Apr 15 21:18:43 2019 +0000 +++ b/MAX30205_Clinical_Temperature_Sensor.lib Wed Apr 17 21:22:11 2019 +0000 @@ -1,1 +1,1 @@ -http://os.mbed.com/teams/MaximIntegrated/code/MAX30205/#d98e4a80a866 +https://os.mbed.com/teams/MaximIntegrated/code/MAX30205_Clinical_Temperature_Sensor/#9c5dc1393570
--- a/main.cpp Mon Apr 15 21:18:43 2019 +0000
+++ b/main.cpp Wed Apr 17 21:22:11 2019 +0000
@@ -87,11 +87,11 @@
DigitalOut bLED(LED3, LED_OFF);
gLED = LED_ON;
pc.baud(9600); // Baud rate = 115200
- pc.printf("MAX30205 Digital Thermometer and "
- "Thermostat example source code.\r\n");
+ pc.printf("MAX30205 Clinical Temperature Sensor"
+ " example source code.\r\n");
pc.printf("\r\n");
uint8_t i2c_addr = MAX30205_I2C_SLAVE_ADR_00;
- uint8_t wait_shut = 90;
+ uint8_t wait_shut = 60;
MAX30205 temp_sensor(i2cBus, i2c_addr);
i2cBus.frequency(400000);
/* Configure for time out enabled, normal format, fault filter 6,
@@ -110,7 +110,7 @@
}
temp_sensor.read_cfg_reg(&cfg);
pc.printf("Configuration Register = 0x%02Xh \r\n", cfg);
-#if 1
+#if 0
temp_sensor.write_trip_low_thyst(-63.9375);
temperature =
temp_sensor.read_reg_as_temperature(MAX30205_REG_THYST_LOW_TRIP);
@@ -149,7 +149,7 @@
pc.printf("\r\n\r\n");
-#if 1
+#if 0
temp_sensor.write_trip_low_thyst(-55.0f);
temperature =
temp_sensor.read_reg_as_temperature(MAX30205_REG_THYST_LOW_TRIP);
@@ -188,7 +188,7 @@
max30205_read_cfg_reg(&cfg, i2cBus);
pc.printf("Configuration Register = 0x%02Xh \r\n", cfg);
-#if 1
+#if 0
max30205_write_trip_low_thyst(-63.9375, i2cBus);
temperature = max30205_read_reg_as_temperature(MAX30205_REG_THYST_LOW_TRIP,
i2cBus);
@@ -225,7 +225,7 @@
max30205_read_cfg_reg(&cfg, i2cBus);
pc.printf("Configuration Register = 0x%02Xh \r\n", cfg);
-#if 1
+#if 0
max30205_write_trip_low_thyst(-55, i2cBus);
temperature = max30205_read_reg_as_temperature(MAX30205_REG_THYST_LOW_TRIP,
i2cBus);