1# PWM grouped mode {#pwm_grouped_desc} 2 3The sample demonstrates a basic functionality of the nrfx_pwm driver for a sequence loaded in the group mode. 4 5## Requirements 6 7The sample supports the following development kits: 8 9| **Board** | **Support** | 10|---------------------|:-----------:| 11| nrf52dk_nrf52832 | Yes | 12| nrf52833dk_nrf52833 | Yes | 13| nrf52840dk_nrf52840 | Yes | 14| nrf5340dk_nrf5340 | Yes | 15| nrf9160dk_nrf9160 | Yes | 16 17## Overview 18 19Application initializes the nrfx_pwm driver. 20It starts two-sequence playback on LEDs and replays this sequence @p NUM_OF_LOOPS times. 21The @p pwm_handler() is executed with a relevant log message after every loop. 22Additionally, it changes SEQ1 each time it is called. 23 24> For more information, see **PWM driver - nrfx documentation**. 25 26## Wiring 27 28To run this sample, no special configuration is needed. 29You should monitor the output from the board to check if it is as expected. 30 31## Building and running 32 33To run this sample, build it for the appropriate board and then flash it as per instructions in [Building and running](@ref building_and_running) section. 34 35## Sample output 36 37You should see the following output: 38 39``` 40- Starting nrfx_pwm example for sequences loaded in grouped mode. 41- Loops: 1 / 6 42- SEQ1 changed to sequence number 2 from the seq array 43- Loops: 2 / 6 44- SEQ1 changed to sequence number 1 from the seq array 45- Loops: 3 / 6 46- SEQ1 changed to sequence number 2 from the seq array 47- Loops: 4 / 6 48- SEQ1 changed to sequence number 1 from the seq array 49- Loops: 5 / 6 50- SEQ1 changed to sequence number 2 from the seq array 51- Loops: 6 / 6 52- SEQ1 changed to sequence number 1 from the seq array 53- PWM finished 54``` 554 LEDs on the development kit should blink in the following sequence: 56 57@cond DOXYGEN_EXCLUDE 58 59@endcond 60 61@image html pwm_grouped_desc.gif "PWM grouped example" 62 63[//]: # 64[Building and running]: <../../../README.md#building-and-running> 65