P0.25 is accessible by below:
nrf_gpio_pin_set(25);
However, when I try to access P1.00:
Neither this:
nrf_gpio_pin_set(1);
Nor this works:
nrf_gpio_pin_set(32);
How to find the mapping between GPIO numbers and pin names?
thanks,
Neo
P0.25 is accessible by below:
nrf_gpio_pin_set(25);
However, when I try to access P1.00:
Neither this:
nrf_gpio_pin_set(1);
Nor this works:
nrf_gpio_pin_set(32);
How to find the mapping between GPIO numbers and pin names?
thanks,
Neo
Hi,
Can you specify what you mean by doesn't work, the pin isn't set to VDD? Have you measured directly on the pin? Are you using a DK or a custom board? If you're using a custom board, could you share the board file that you're using.
regards
Jared
By not working, I mean when I connect LED to pin 25, LED will work. However, same code won't work on pin 1.00 or anything like P1.xx.
Hi,
Are you using a custom board or a DK?
What do you measure on the pin when you try to toggle the signal?
regards
Jared
It is a custom board from Taiyo and the schematic looks like this. I connected a LED + resistor to this pin and it doesn't light up as the I connect them to P0.xx GPIOs.
www.yuden.co.jp/.../TY_BLE_EYSPBN_EVBManual_V0_8_20200821.pdf
But what voltage level do you see if you measure directly on the pin?
But what voltage level do you see if you measure directly on the pin?
I measured 30 - 40mV no matter I set or clear this GPIO.
#define led NRF_GPIO_PIN_MAP(1,9)
//nrf_gpio_pin_set(led);
nrf_gpio_pin_clear(led);
Hi,
P1.00 is at Port 1, Pin 0. Which mean that you should use #define led NRF_GPIO_PIN_MAP(1,0)