I have the devlopment kit pca 10028 with nrf51422
Thank you very much for the answer. MC
I have the devlopment kit pca 10028 with nrf51422
Thank you very much for the answer. MC
do you want to use BSP library for this? or is it ok if you can just use the nrf_gpio_pin_write API and control the LED_1 which is connected to pin number 21
Hello Aryan i have do it with nrf_gpio.. like this:
#define CENTRAL_CONNECTED_LED 22
static void leds_init(void)
{
nrf_gpio_cfg_output(CENTRAL_CONNECTED_LED);
nrf_gpio_pin_clear(CENTRAL_CONNECTED_LED);
while(1)
{
nrf_gpio_pin_toggle(CENTRAL_CONNECTED_LED);
nrf_delay_ms(1000);
}
}
The led now blink evry time, but i need that the led blink only when the periheral is connected.
Sorry about my english. is possible that you send me a exemple for BSP und exemple for nrf_gpio. please with exactly where i must write the code.
thank you very much mc
Hello Aryan i have do it with nrf_gpio.. like this:
#define CENTRAL_CONNECTED_LED 22
static void leds_init(void)
{
nrf_gpio_cfg_output(CENTRAL_CONNECTED_LED);
nrf_gpio_pin_clear(CENTRAL_CONNECTED_LED);
while(1)
{
nrf_gpio_pin_toggle(CENTRAL_CONNECTED_LED);
nrf_delay_ms(1000);
}
}
The led now blink evry time, but i need that the led blink only when the periheral is connected.
Sorry about my english. is possible that you send me a exemple for BSP und exemple for nrf_gpio. please with exactly where i must write the code.
thank you very much mc