Control output of a GPIO with just one LED. Control input of a GPIO with one button.
Control output of a GPIO with just one LED. Control input of a GPIO with one button.
One way to configure the GPIOs is to use the nrf_gpio interface directly:
Configure pin as output: nrf_gpio_cfg_output(pin_number)
Configure pin as input : nrf_gpio_cfg_input(pin_number)
Turn on/off the LED:
nrf_gpio_pin_set(pin_number) nrf_gpio_pin_clear(pin_number)
Hope that helps!
Regards Joakim
Thank you Joakim.
Thank you Joakim.