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

simple integration of GPIO and I2C

Hello,

I am currently trying to program the nRF52832 to be able to receive data from a heart rate sensor. The sensor uses I2C communication and has an additional two pins (RESET and MFIO) . The additional pins need to be toggled a certain way in order to put the sensor into application mode. 

I have been working off the example provided by the SDK called twi_sensor and have been able to write code relating to I2C. However, it appears the twi_sensor project does not have any GPIO library/files associated with it and because of this I can't access the RESET and MFIO pins.

I'm really confused as to exactly which files I should add to this project in order to gain access to the GPIO peripheral. I tried adding what I thought was the right file but then ended up going down a rabbit hole of build errors [not finding files being referenced in the one I added].

I would really appreciate some guidance.

Best.

Related