What is the difference between setting a pin output (to drive an LED) with this set of commands:
nrf_gpio_cfg_output(5);
nrf_gpio_pins_set(5);
and this set of commands:
bsp_board_leds_init(5);
bsp_board_led_on(5);
Thanks,
Dave
What is the difference between setting a pin output (to drive an LED) with this set of commands:
nrf_gpio_cfg_output(5);
nrf_gpio_pins_set(5);
and this set of commands:
bsp_board_leds_init(5);
bsp_board_led_on(5);
Thanks,
Dave
Hi Dave!
Not sure if I understand what you were looking for here, but the bsp_board_leds_on() in turn uses the nrf_gpio_pin_clear() to light up the leds and bsp_board_led_off() uses the nrf_gpio_pin_set() to turn off the led.
And the bsp_board_leds_init() in turn calls the nrf_gpio_cfg_output().
Please let me know if you have further questions.
Best regards,
Joakim.
Hi Dave!
Not sure if I understand what you were looking for here, but the bsp_board_leds_on() in turn uses the nrf_gpio_pin_clear() to light up the leds and bsp_board_led_off() uses the nrf_gpio_pin_set() to turn off the led.
And the bsp_board_leds_init() in turn calls the nrf_gpio_cfg_output().
Please let me know if you have further questions.
Best regards,
Joakim.