kalpesh11:
How to read the values of IR and red led . What is the address for fetching the values?
Looks like it is done with this function call:
maxim_max30102_read_fifo((aun_red_buffer+i), (aun_ir_buffer+i)); //read from MAX30102 FIFO
The function is in max30102.cpp. Looks like it reads six bytes from register address REG_FIFO_DATA. The first three bytes are a 24-bit RED value and the next three are a 24-bit IR value. For the UNO, which has limited RAM, the library uses 16-bit numbers and only keeps the top 16 bits. For processors with more memory it returns all 24 bits in a 32-bit long integer.