Blinky SysTick Example

nRF5 SDK v15.3.0

The Blinky SysTick Example shows how to use the SysTick timer to generate timeouts. These timeouts can then be used to drive the LEDs, just like in this example:

Page-1 Start/End-point Start Start Flowline1 Process.245 Set LED pins as output Set LED pins as output Flowline1.258 Process.260 Toggle first LED Toggle first LED Flowline1.259 Process.261 Toggle last LED Toggle last LED Flowline2 Straight Edge.28 N Straight Edge.29 N Process.104 (...) (...)
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. Alternatively, you can run it with a SoftDevice.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\blinky_systick

Testing

Test the Blinky SysTick Example application by performing the following steps:

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