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

gpio_pin

Dear Sirs,

I am using example anr_hrm nrf_sdk_15.3.0 I would like to use PINs on/off

software s212

#include "nrf.h"

#include "nrf_gpio.h"

#include "nrf_delay.h"

 

#define LED1_PIN 22

int main (void)

{

   nrf_gpio_cfg_output(LED1_PIN);

   nrf_gpio_pin_clear(LED1_PIN);

   while(1)

   {

       nrf_gpio_pin_toggle(LED1_PIN);

       nrf_delay_ms(1000);

   }

}

Please find under the code. unfortynately 22 pin is not seting down or up.

22 pin and 23, 24,25 are always up

Could you please give me some solution for it

With Best Regards

Related