Intento 4

Dependencies:   BLE_API BLE_Driver I2C_Driver MAX30100 PROCESAMIENTO_DATOS_SP02 mbed millis nRF51822

Fork of MAX30100_FirstTry by Daniel Ferszt

Files at this revision

API Documentation at this revision

Comitter:
Ferszt
Date:
Mon Jun 12 16:26:07 2017 +0000
Parent:
5:c2ce7b743efa
Commit message:
Funcionando la lectura en duro

Changed in this revision

mainbletest.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/mainbletest.cpp	Tue May 30 01:00:34 2017 +0000
+++ b/mainbletest.cpp	Mon Jun 12 16:26:07 2017 +0000
@@ -11,13 +11,13 @@
 
 
 #ifdef nRF52DK
-#define SCL         28
-#define SDA         29
+#define SCL         2
+#define SDA         1
 #endif
 
 #ifdef nRF51DK
-#define SCL         7  
-#define SDA         6
+#define SCL         2  
+#define SDA         1
 #endif
 
 //**************************
@@ -317,7 +317,7 @@
         lowPassButterworthFilter( meanDiffResIR/*-dcFilterIR.result*/, &lpbFilterIR );
         detectPulse( lpbFilterIR.result );
         //store_Samples();
-        sprintf(show, "%f", sensor.IR);
+        sprintf(show, "%d", sensor.RED);
         putBLE(show);
         putBLE("\n");
         //wait(0.019);