1.. zephyr:code-sample:: lp5562
2   :name: LP5562 RGB LED
3   :relevant-api: led_interface
4
5   Control 4 RGB LEDs connected to an LP5562 driver chip.
6
7Overview
8********
9
10This sample controls 4 LEDs connected to a TI LP5562 driver, using the
11following pattern:
12
13 1. turn on LEDs to be red
14 2. turn on LEDs to be green
15 3. turn on LEDs to be blue
16 4. turn on LEDs to be white
17 5. turn on LEDs to be yellow
18 6. turn on LEDs to be purple
19 7. turn on LEDs to be cyan
20 8. turn on LEDs to be orange
21 9. turn off LEDs
22 10. blink the LEDs in white
23 11. turn off LEDs
24 12. blink the LEDs in purple
25 13. turn off LEDs
26
27Refer to the `LP5562 Manual`_ for the RGB LED connections and color channel
28mappings used by this sample.
29
30Building and Running
31********************
32
33Build the application for the :ref:`nrf52840dk_nrf52840` board, and connect
34a LP5562 LED driver on the bus I2C0 at the address 0x30.
35
36.. zephyr-app-commands::
37   :zephyr-app: samples/drivers/led_lp5562
38   :board: nrf52840dk_nrf52840
39   :goals: build
40   :compact:
41
42For flashing the application, refer to the Flashing section of the
43:ref:`nrf52840dk_nrf52840` board documentation.
44
45.. _LP5562 Manual: http://www.ti.com/lit/ds/symlink/lp5562.pdf
46