PAH8011 HeartRate on STM NUCLEO-L476RG

Dependencies:   mbed pixart_heart_rate_demo pixart_heart_rate_lib_keil_m4

Fork of PixArt_PAH8011_HeartRate_NUCLEO-L476RG by PixArt

Committer:
pixus_mbed
Date:
Mon Oct 30 06:33:11 2017 +0000
Revision:
0:dafeae8d92bf
Init version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pixus_mbed 0:dafeae8d92bf 1
pixus_mbed 0:dafeae8d92bf 2 #include "pixart_heart_rate_demo.h"
pixus_mbed 0:dafeae8d92bf 3
pixus_mbed 0:dafeae8d92bf 4 #include <mbed.h>
pixus_mbed 0:dafeae8d92bf 5
pixus_mbed 0:dafeae8d92bf 6
pixus_mbed 0:dafeae8d92bf 7 static Serial pc(USBTX, USBRX);
pixus_mbed 0:dafeae8d92bf 8 static I2C i2c(I2C_SDA, I2C_SCL);
pixus_mbed 0:dafeae8d92bf 9 static InterruptIn interrupt(PA_10);
pixus_mbed 0:dafeae8d92bf 10
pixus_mbed 0:dafeae8d92bf 11
pixus_mbed 0:dafeae8d92bf 12 int main(void)
pixus_mbed 0:dafeae8d92bf 13 {
pixus_mbed 0:dafeae8d92bf 14 pc.baud(115200);
pixus_mbed 0:dafeae8d92bf 15
pixus_mbed 0:dafeae8d92bf 16 // demo
pixus_mbed 0:dafeae8d92bf 17 pixart::heart_rate_demo demo(i2c, interrupt, pc);
pixus_mbed 0:dafeae8d92bf 18 demo.run();
pixus_mbed 0:dafeae8d92bf 19 }