nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Blinky Example

Modules

 main.c
 GPIO Example Application main file.
 

Detailed Description

The Blinky Example shows how to configure GPIO pins as outputs which can also be used to drive LEDs on the hardware delivered in the nRF51822 Development Kit. Each LED is set on one at a time and each state lasts 100 milliseconds.

The source code and project file can be found in the <InstallFolder>\Nordic\nrf51822\Board\nrf6310\blinky_example folder.

When the application starts, the 8 GPIO pins are configured as outputs to drive the LEDs. The LEDs are lit in order from LED0 to LED7 and around, with 100ms on time for each LED.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

Testing

The Blinky Example Application can be tested as follows:

  1. Compile and program the application.
  2. Observe that the LEDs are blinking in order from LED0 to LED7 and around, with each LED lit for 100ms.