In VC31B/VCHR02Driver_HrSpo2_Gsensor_V1.9.5/module_heart_vc_int.c the algorithm is called, but you need to look into the other files in that dir for how to configure the sensor.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's great, thanks!
Actually it seems I couldn't email you the zip so I'll attach it here. It's mostly in Chinese so it can be a bit tricky to dig through, but:
VC31B/algos/SPO2
so you need to add those to https://github.com/espruino/Espruino/tree/master/libs/misc/vc31_binaryVC31B/VCHR02Driver_HrSpo2_Gsensor_V1.9.5/module_heart_vc_int.c
the algorithm is called, but you need to look into the other files in that dir for how to configure the sensor.One of the important bits is probably:
Which you need to get put in https://github.com/espruino/Espruino/blob/master/libs/misc/hrm_vc31.c#L767-L776 when SPO2 mode is to be enabled.
Right now we don't auto-calibrate the HRM speed which their code does - I'm not sure if that's going to end up causing problems or not.
1 Attachment