I successfully used a MAX30102 sensor with your MAX3010x Pulse and Proximity Sensor Library on both Arduino Uno and Arduino Nano, but it hangs with Arduino Nano Every. Are there available any patches to solve the problem?
IDE 2.1.0 with megaAvr board package compiles your source Example8_SPO2.ino and uploads the code but at run time it hangs at the first function call. The warning after compiling is:
In file included from C:\Users\Vaio\Documents\Arduino\libraries\SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library\src\MAX30105.h:20:0,
from C:\Users\Vaio\Documents\Arduino\libraries\SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library\src\MAX30105.cpp:12:
C:\Users\Vaio\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h: In member function ‘uint8_t MAX30105::readRegister8(uint8_t, uint8_t)’:
C:\Users\Vaio\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
size_t requestFrom(int, int);
^~~~~~~~~~~
C:\Users\Vaio\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
size_t requestFrom(uint8_t, size_t);
^~~~~~~~~~~
Lo sketch usa 11245 byte (22%) dello spazio disponibile per i programmi. Il massimo è 49152 byte.
Le variabili globali usano 2153 byte (35%) di memoria dinamica, lasciando altri 3991 byte liberi per le variabili locali. Il massimo è 6144 byte.
avrdude: jtagmkII_initialize(): Cannot locate “flash” and “boot” memories in description