SCT2024 LED Controller

Browse source code on GitHub

Overview

This sample controls up to 16 LEDs connected to a SCT2024 driver.

In an infinite loop, a test pattern is applied to each LED one at a time. The pattern consists of turning each LED on individually. Once all LEDs are on, they are all switched off simultaneously, followed by being switched on simultaneously. After this, each LED is turned off one at a time in sequence. Then the pattern is repeated.

Building and Running

This sample can be built and executed on boards with an SCT2024 driver connected. A node matching the device type binding should be defined in the board DTS files.

As an example this sample provides a DTS overlay for the nRF52840 DK board (boards/nrf52840dk_nrf52840.overlay). It assumes that an SCT2024 LED driver (with 16 LEDs wired) is connected to the SPI bus at selected pins.

References

See also

LED