Demo PAH8011 & HeartRate on STM NUCLEO-L476RG

Dependencies:   mbed pixart_heart_rate_demo pixart_heart_rate_lib_keil_m4

main.cpp

Committer:
pixus_mbed
Date:
2017-10-30
Revision:
0:dafeae8d92bf

File content as of revision 0:dafeae8d92bf:


#include "pixart_heart_rate_demo.h"

#include <mbed.h>


static Serial       pc(USBTX, USBRX);
static I2C          i2c(I2C_SDA, I2C_SCL);
static InterruptIn  interrupt(PA_10);


int main(void)
{
    pc.baud(115200);
    
    // demo
    pixart::heart_rate_demo demo(i2c, interrupt, pc);
    demo.run();
}