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

Parents Reply
  • after sucessful instalation 8.30.2 I have folowing

    Rebuild started: Project: blinky_pca10040 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\ant\b\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'nrf52832_xxaa' Error instantiating RTE components Error #544: Required Software Pack 'NordicSemiconductor.nRF_DeviceFamilyPack_NordicLicense' is not installed Target not created. Build Time Elapsed:  00:00:00

Children
No Data
Related