This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to access the pin named "P1.04"

Hello,

I am using nRF52833 based BE33 (Celium Devices) and using nRF52SDK17.0.2. I am a beginner at Nordic. I want to understand how I can access a pin named "P1.04" I believe we can access a pin named  "P0.11" as pin number 11 in the code as shown below.

nrf_gpio_pin_write(11,1);

or

nrf_gpio_pin_write(11,0);

Similarly how to access the pin named "P1.04"?

Thanks and regards,

Neeraj Dhekale

Parents
  • Hi Neeraj,

    nrf_gpio_pin_write(11,1);

    or

    nrf_gpio_pin_write(11,0);

    This should be correct for all pin number with P0.x . For P1.x, you can refer to the pins as (pin number + 32).

    For eg,

    P1.04 can be nrf_gpio_pin_write(36, 1), i.e. 32+4 = 36

    Regards,

    Priyanka

Reply
  • Hi Neeraj,

    nrf_gpio_pin_write(11,1);

    or

    nrf_gpio_pin_write(11,0);

    This should be correct for all pin number with P0.x . For P1.x, you can refer to the pins as (pin number + 32).

    For eg,

    P1.04 can be nrf_gpio_pin_write(36, 1), i.e. 32+4 = 36

    Regards,

    Priyanka

Children
Related