NRF52840 Eval Kit User Manual
Vision: V1.0.1 Date: 2019.01.19 21 / 72
And finally, the functions are called in main file to keep turning four LEDs on for
500ms then turning them off for 500ms.
int main(void)
{
while (true)
{
LED_On(LED0);
LED_On(LED1);
LED_On(LED2);
LED_On(LED3);
nrf_delay_ms(500);
LED_Off(LED0);
LED_Off(LED1);
LED_Off(LED2);
LED_Off(LED3);
nrf_delay_ms(500);
}
}
HARDWARE CONNECTION
According to the codes above we know that, the four LEDs controlled should be
connected to P0.13, P0, 14, P0.19, P0.16 separately as table:
In official SDK, LED3 is connected to P0.15 which is not compatible with official
examples. If you want to use the official SDK and LED3, you need to change it to P1.09.