Demo Heart Rate with PAH8011

Dependencies:   pixart_heart_rate pixart_pah8011

Dependents:   PAH8011_nRF52_Program PixArt_PAH8011_HeartRate_NUCLEO-L476RG PixArt_PAH8011_HR_NUCLEO-L476RG

Files at this revision

API Documentation at this revision

Comitter:
bell_huang
Date:
Wed Jan 23 08:10:59 2019 +0000
Parent:
4:7ce94c24c652
Commit message:
Fix demo

Changed in this revision

pixart_heart_rate_demo.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7ce94c24c652 -r 4fe132cb9273 pixart_heart_rate_demo.cpp
--- a/pixart_heart_rate_demo.cpp	Wed Jan 23 08:05:56 2019 +0000
+++ b/pixart_heart_rate_demo.cpp	Wed Jan 23 08:10:59 2019 +0000
@@ -41,9 +41,9 @@
         }
         
         // pah8011
-        pixart::pah8011 pah8011;
+        pixart::pah8011 pah8011(m_i2c);
         pah8011.enable_debug_print(heart_rate_demo::debug_print);
-        if (!pah8011.init(m_i2c))
+        if (!pah8011.init())
         {
             pc->printf("pah8011.init() failed\n");
             error_handler();