Demo PAH8011 & HeartRate on STM NUCLEO-L476RG
Dependencies: mbed pixart_heart_rate_demo pixart_heart_rate_lib_keil_m4
Diff: main.cpp
- Revision:
- 0:dafeae8d92bf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Oct 30 06:33:11 2017 +0000 @@ -0,0 +1,19 @@ + +#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(); +}