Loading...
Searching...
No Matches
lpd8808.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
28
29#include "color.h"
30#include "periph/gpio.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
39typedef struct {
40 int led_cnt;
41 gpio_t pin_clk;
42 gpio_t pin_dat;
44
49
59int lpd8808_init(lpd8808_t *dev, const lpd8808_params_t *params);
60
72void lpd8808_load_rgb(const lpd8808_t *dev, color_rgb_t vals[]);
73
74#ifdef __cplusplus
75}
76#endif
77
Headers for the color handling module.
Low-level GPIO peripheral driver interface definitions.
int lpd8808_init(lpd8808_t *dev, const lpd8808_params_t *params)
Initialize the given LPD8808 based LED strip.
lpd8808_params_t lpd8808_t
Device descriptor, same as the configuration parameters.
Definition lpd8808.h:48
void lpd8808_load_rgb(const lpd8808_t *dev, color_rgb_t vals[])
Set the color value of each LED on the strip.
Data-structure describing an RGB color.
Definition color.h:34
Parameters needed for configuration.
Definition lpd8808.h:39
int led_cnt
number of LEDs on the strip
Definition lpd8808.h:40
gpio_t pin_clk
pin connected to the strip's clock signal
Definition lpd8808.h:41
gpio_t pin_dat
pin connected to the strip's data signal
Definition lpd8808.h:42