Maxim Integrated / Mbed OS MAX30208_Demo

Dependencies:   max32630fthr USBDevice

Revision:
1:bf1f12445c37
Parent:
0:d996cb30964c
Child:
2:836c3793cd68
--- a/main.cpp	Wed Jul 15 15:06:32 2020 +0000
+++ b/main.cpp	Mon Aug 10 13:03:59 2020 +0000
@@ -50,6 +50,10 @@
 
 MAX30208 TempSensor(i2c, 0x50); //Constructor takes 7-bit slave adrs
 
+void testInt(){
+    microUSB.printf("Triggered\r\n");
+}
+
 int main()
 {
     
@@ -68,6 +72,7 @@
 
     uint16_t val;
     
+    
     while(1) {
     
     TempSensor.takeDataMeasurment();
@@ -151,21 +156,9 @@
     if (TempSensor.writeGPIOSetup(GPIOSetup) != 0){
         microUSB.printf("Error writing register\r\n");
     }
-    
-    /*//readGPIOControl
-    if (TempSensor.readGPIOControl(GPIOControl) == 0){
-        microUSB.printf("GPIOControl new config = %d\r\n", GPIOControl.all);
-    }
-    GPIOControl.config.GPIO0_LL = 0;
-    GPIOControl.config.GPIO1_LL = 0;
-    if (TempSensor.writeGPIOControl(GPIOControl) != 0){
-        microUSB.printf("Error writing register\r\n");
-    }
-    */
+
     TempSensor.resetDevice();
     
-    //NEED MORE WORK HERE, GOTTA CHECK A CONDITION ON THIS GUY
-    //TempSensor.readStatus()
 
     microUSB.printf("\r\n\r\n");
     uint16_t PointerValue;