Hi,
I want to read and write MAX30100's registers. How can i do that? I tried a lot of solutions but I didn't solve that.
For example; MAX30100's address is 0x57. And I want to initialize this sensor. So I should this: (pseudo code)
write_to_register(0x57, 0x06, 0x02); // write '0x02' to '0x06' register write_to_register(0x57, 0x09, 0x02); // write '0x02' to '0x09' register write_to_register(0x57, 0x07, (0<<2)|4); // write '(0<<2)|4' to '0x07' register read_from_register(0x57, 0xFF); // read '0xFF' register (should return 0x11 according to datasheet)
How can i do that? Can you help me please?