Hardware Connection - Waveshare NRF52840 User Manual

Eval kit
Table of Contents

Advertisement

NRF52840 Eval Kit User Manual
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:
UART
LED1
LED2
LED3
LED4
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.
Vision: V1.0.1 Date: 2019.01.19
GPIO
P0.13
P0.14
P1.09
P0.16
21 / 72

Advertisement

Table of Contents
loading

Table of Contents