Hello, i am a beginner, i want to configure an LED to be connected on one of the GPIO pins, please help me with the code.
Hello, i am a beginner, i want to configure an LED to be connected on one of the GPIO pins, please help me with the code.
Hi Verma.
I don't know excactly what you want to do with the LED. But i assume you want it to light up. The easiest way to control the LED is to use the nrf_gpio interface directly.
nrf_gpio_cfg_output(pin_number)
nrf_gpio_pin_set(pin_number)
nrf_gpio_pin_clear(pin_number)
If you want it to blink, I suggest you take a look at this tutorial, which sets up a timer that toggles an LED.
Best regards
Joakim
Thank you so much. Can you help me on how to interface an OLED display 128x32 spi with nRF51422?
Thank you so much. Can you help me on how to interface an OLED display 128x32 spi with nRF51422?