1.. zephyr:code-sample:: is31fl3733
2   :name: IS31FL3733 LED Matrix
3   :relevant-api: led_interface
4
5   Control a matrix of up to 192 LEDs connected to an IS31FL3733 driver chip.
6
7Overview
8********
9
10This sample controls a matrix of up to 192 LEDs. The sample performs the
11following test steps in an infinite loop:
12
13- Set all LEDs to full brightness with :c:func:`led_write_channels` API
14- Disable upper quadrant of LED array with :c:func:`led_write_channels` API
15- Dim each LED in sequence using :c:func:`led_set_brightness` API
16- Toggle each LED in sequency using :c:func:`led_on` and :c:func:`led_of` APIs
17- Toggle between low or high current limit using :c:func:`is31fl3733_current_limit`
18  API, and repeat the above tests
19
20Sample Configuration
21====================
22
23The number of LEDs can be limited using the following sample specific Kconfigs:
24
25- :kconfig:option:`CONFIG_LED_ROW_COUNT`
26- :kconfig:option:`CONFIG_LED_COLUMN_COUNT`
27
28Building and Running
29********************
30
31This sample can be run on any board with an IS31FL3733 LED driver connected via
32I2C, and a node with the `issi,is31fl3733` compatible present in its devicetree.
33
34This sample provides a DTS overlay for the :ref:`frdm_k22f` board
35(:file:`boards/frdm_k22f.overlay`). It assumes that the IS31FL3733 LED
36controller is connected to I2C0, at address 0x50. The SDB GPIO should be
37connected to PTC2 (A3 on the arduino header)
38