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

EXT GPIO pins on THINGY52 as a service

Hi,

I am prototyping with the the THINGY52 using nRF Connect.

I am using the services available to drive the MOSFETs on the expansion connector P4 through the services and EXT pin characteristics with success.

I need to utilize the EXT GPIO pins as well.

Is there a similar service to set the 4 EXT GPIO pins EXT.0 thru EXT.3 to INPUT and then to read them?

(sorry if I missed this or didn't find it in this blog)

Thanks,

Doug

Parents
  • Hi Doug, 

    Just to clarify you are looking at the  "EXT pin characteristic" UUID:0303, which control pin MOS_1 to MOS_4 ? 

    By default they are output pins. But it's up to you to modify the code to make them input pins. The configuration is m_ui_init(). The characteristic currently supports write request and read, you would need to add notification feature like the button characteristic UUID:0302. 

Reply
  • Hi Doug, 

    Just to clarify you are looking at the  "EXT pin characteristic" UUID:0303, which control pin MOS_1 to MOS_4 ? 

    By default they are output pins. But it's up to you to modify the code to make them input pins. The configuration is m_ui_init(). The characteristic currently supports write request and read, you would need to add notification feature like the button characteristic UUID:0302. 

Children
  • Hi Hung,

    Thank you for the response. To confirm, yes, I am using the 'canned' service for EXT pin characteristic from within nRF connect mobile app to operate the MOS_1 to MOS_4 with success.

    Form your response, I see a 'canned' service to configure and read/write the EXT.0 thru EXT.3 pins will need to be coded... to be modeled like the button characteristic UUID:0302.

    Thanks for your assistance.

    -Doug

Related