Hello at all. I have seen there is an example for calculation heart rate with MAX30101 but there isn’t an example for calculate oxygen. Someone knows how calculate it from read raw samples?
I think the algorithm for the oxygen calculation is mentioned in the datasheet.
I suggest you try to port an existing library for example the Sparkfun_MAX3010x, take the functions related to the oxygen calculation and port in your project.