• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/11-Mar-2024-129

src/11-Mar-2024-233145

CMakeLists.txtD11-Mar-2024228 106

README.rstD11-Mar-20241.1 KiB4534

prj.confD11-Mar-202426 32

sample.yamlD11-Mar-2024191 98

README.rst

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