I disconnected the HRM connector and checked each pins to find which is which. So I located 4 pins (D21: HRM_POWER, D22: HRM_INT, D24: HRM_SDA, D32: HRM_SCL). I was excited to see if I could use them as digital input for extra switches. Of course, the HRM power was off.
But it seems only two pins are allowed to use. I got an error WARNING: No free GPIOTE for watch if I tried to set more than 2 pins as digital inputs as @halemmerich also mentioned HERE.
I couldn't find any information on the GPIOTE and why I got the errors. Does anyone have any clue?
Thanks.
Update:
It looks like I would need to use nRF52 low level interface library, but have no clue how to use it. Is this the one I need to look at or should I do something else?
Thanks.
Update 2:
So, I guess the GPIOTE (GPIO task and event) has certain limited number. And the pins for the HRM seems to be already taken in the Bootloader or firmware. If this is correct, how can I remove pre-assigned GPIOTE for the HRM?
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.
I disconnected the HRM connector and checked each pins to find which is which. So I located 4 pins (D21: HRM_POWER, D22: HRM_INT, D24: HRM_SDA, D32: HRM_SCL). I was excited to see if I could use them as digital input for extra switches. Of course, the HRM power was off.
But it seems only two pins are allowed to use. I got an error
WARNING: No free GPIOTE for watch
if I tried to set more than 2 pins as digital inputs as @halemmerich also mentioned HERE.I couldn't find any information on the GPIOTE and why I got the errors. Does anyone have any clue?
Thanks.
Update:
It looks like I would need to use nRF52 low level interface library, but have no clue how to use it. Is this the one I need to look at or should I do something else?
Thanks.
Update 2:
So, I guess the GPIOTE (GPIO task and event) has certain limited number. And the pins for the HRM seems to be already taken in the Bootloader or firmware. If this is correct, how can I remove pre-assigned GPIOTE for the HRM?