This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

programing the Max30105 with nrf52840

I am in the process of programming the MAX30105 sensor with the NRF52840 board to obtain the oxygen concentration values
I tried to use the library that already exists in the arduino which contains the .h and .c files of this sensor by using this link :

https://github.com/sparkfun/MAX30105_Particle_Sensor_Breakout/tree/master/Libraries/Arduino/src

I'm trying to translate the code into C language so that it can be used in Segger embeded studio 

I had no idea how to transform these lines of code :

_i2cPort = &wirePort; //Grab which port the user wants us to use

_i2cPort->begin();
 _i2cPort.setClock(i2cSpeed);


//Get ready to read a burst of data from the FIFO register
_i2cPort->beginTransmission(MAX30105_ADDRESS);
 _i2cPort->write(MAX30105_FIFODATA);
_i2cPort->endTransmission();

 temp[2] = _i2cPort.read();

Can you help me ?

Parents Reply Children
No Data
Related