Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
led_strip.h File Reference

Public API for controlling linear strips of LEDs. More...

#include <zephyr/types.h>
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

struct  led_rgb
 Color value for a single RGB LED. More...
 
struct  led_strip_driver_api
 LED strip driver API. More...
 

Typedefs

typedef int(* led_api_update_rgb) (const struct device *dev, struct led_rgb *pixels, size_t num_pixels)
 Callback API for updating an RGB LED strip.
 
typedef int(* led_api_update_channels) (const struct device *dev, uint8_t *channels, size_t num_channels)
 Callback API for updating channels without an RGB interpretation.
 

Functions

static int led_strip_update_rgb (const struct device *dev, struct led_rgb *pixels, size_t num_pixels)
 Update an LED strip made of RGB pixels.
 
static int led_strip_update_channels (const struct device *dev, uint8_t *channels, size_t num_channels)
 Update an LED strip on a per-channel basis.
 

Detailed Description

Public API for controlling linear strips of LEDs.

This library abstracts the chipset drivers for individually addressable strips of LEDs.