heartrate10 2.0.0.0
|
HeartRate10 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
HeartRate10 Click example.
This example showcases ability for device to read Heart Rate with 4 different diodes. There is IR, Red, Green and Blue. You can control every one of them individualy, and change theirs sequence in FIFO register. All leds data is read from FIFO register, it's 19bit data for every led.
The demo application is composed of two sections :
Initialization of host communication periphrials and interrupt pin. Configures default configuration to device where device is reset, checks Part ID and enables all 4 leds and sets sequence as IR-Red-Green-Blue. Sets their power to maximum, and enables interrupt on new data ready.
Reads FIFO data for all 4 didoes and logs them with separation character ','.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |