| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Timer Example

The Timer Example demonstrates the use of the timer peripherals. This example replaces the less accurate busy delay in the Blinky Example with a more accurate hardware timer based delay.

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

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

# Testing

Test the Timer Example application by performing the following steps:

1. Compile and program the application.
2. Observe that the LEDs state is changed every 500 milliseconds.