hello there any simple example available for making gpio pins high or low in nrf51822??
hello there any simple example available for making gpio pins high or low in nrf51822??
Look at SDK\examples\peripheral\blinky_freertos.
Better to do the non freeRTOS version: SDK\examples\peripheral\blinky.
Using nrf_gpio.h:
nrf_gpio_cfg_output(pin_number); //config pin as output
nrf_gpio_pin_set(pin_number); //set pin high
nrf_gpio_pin_clear(pin_number); //set pin low
nrf_gpio_pin_toggle(pin_number); //toggle pin