This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Leds not blinking

Here is the code i am writing, yet leds dont blink-

#define LED1 BSP_LED_0
#define LED2 BSP_LED_1
#define LED3 BSP_LED_2
#define LED4 BSP_LED_3

int main(void){

bsp_board_init(BSP_INIT_LEDS);
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();

while (1)
{

// nrf_gpio_pin_set(LED1);
bsp_board_led_on(LED1);
bsp_board_led_on(LED2);
// nrf_gpio_pin_set(LED2);
nrf_delay_ms(5000);
bsp_board_led_invert(LED1);

}

Parents Reply Children
No Data
Related