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

The Blinky Example shows how to configure the GPIO pins as outputs. These outputs can then be used to drive LEDs, as in this example.

blinky.jpg
Illustration of the Blinky Example workflow

When the application starts, some GPIO pins are configured as outputs to drive the LEDs. The application then loops while toggling the state of one of the LEDs every 500 milliseconds.

You can use this example without a SoftDevice. The name of the example for PCA10028 is blinky_blank_pca10028, and for PCA10031 it is blinky_blank_pca10031. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\examples\peripheral\blinky

Alternatively, you can run it with SoftDevice S110. The name of the example for PCA10028 is blinky_s110_pca10028, and for PCA10031 it is blinky_s110_pca10031. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\examples\peripheral\blinky

Testing

Test the Blinky Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that the LEDs are blinking.